Skip to content

Commit

Permalink
v0.10.161
Browse files Browse the repository at this point in the history
  • Loading branch information
wrayzheng committed Apr 29, 2021
1 parent 4b70c11 commit c24f402
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Release Notes.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
发行说明:记录每次SDK更新的说明,最新版本的SDK包含以前所有版本的更新内容。
---------------------------------------------------------------------
【版本:v0.10.161】
涉及产品:基础包,修复PATCH方法无Content问题。

【版本:v0.10.160】
涉及产品:基础包,增加PATCH方法支持。

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.baidubce</groupId>
<artifactId>bce-java-sdk</artifactId>
<version>0.10.160</version>
<version>0.10.161</version>
<name>bce-sdk-java</name>
<description>The BCE SDK for Java provides Java APIs for all of BCE services.</description>
<url>http://bce.baidu.com/sdk/index.html</url>
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/com/baidubce/http/BceHttpClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,11 @@ protected HttpRequestBase createHttpRequest(InternalRequest request) {
} else if (request.getHttpMethod() == HttpMethodName.HEAD) {
httpRequest = new HttpHead(uri);
} else if (request.getHttpMethod() == HttpMethodName.PATCH) {
httpRequest = new HttpPatch(uri);
HttpPatch patchMethod = new HttpPatch(uri);
httpRequest = patchMethod;
if (request.getContent() != null) {
patchMethod.setEntity(new InputStreamEntity(request.getContent(), contentLength));
}
} else {
throw new BceClientException("Unknown HTTP method name: " + request.getHttpMethod());
}
Expand Down

0 comments on commit c24f402

Please sign in to comment.