Skip to content

Commit

Permalink
v0.10.160
Browse files Browse the repository at this point in the history
  • Loading branch information
wrayzheng committed Apr 27, 2021
1 parent a41fb0f commit 4b70c11
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
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.160】
涉及产品:基础包,增加PATCH方法支持。

【版本:v0.10.159】
涉及产品:MCA,图片分析接口可自定义请求设置title、source、preset。

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.159</version>
<version>0.10.160</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
3 changes: 3 additions & 0 deletions src/main/java/com/baidubce/http/BceHttpClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import org.apache.http.client.methods.HttpDelete;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpHead;
import org.apache.http.client.methods.HttpPatch;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.methods.HttpPut;
import org.apache.http.client.methods.HttpRequestBase;
Expand Down Expand Up @@ -480,6 +481,8 @@ protected HttpRequestBase createHttpRequest(InternalRequest request) {
httpRequest = new HttpDelete(uri);
} else if (request.getHttpMethod() == HttpMethodName.HEAD) {
httpRequest = new HttpHead(uri);
} else if (request.getHttpMethod() == HttpMethodName.PATCH) {
httpRequest = new HttpPatch(uri);
} else {
throw new BceClientException("Unknown HTTP method name: " + request.getHttpMethod());
}
Expand Down

0 comments on commit 4b70c11

Please sign in to comment.