Android HTTPClient支持PATCH方法

时间:2016-03-09 19:22:20

标签: appcelerator appcelerator-titanium

使用5.2.0GA SDK,也尝试使用5.1.2GA,HTTPClient不支持PATCH方法。找到一个JIRA ticket,表示已在5.1.2解决,但仍然会抛出错误:

[ERROR] :  TiHTTPClient: (TiHttpClient-19) [13162,99993] HTTP Error (java.net.ProtocolException): Unknown method 'PATCH'; must be one of [OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE]
[ERROR] :  TiHTTPClient: java.net.ProtocolException: Unknown method 'PATCH'; must be one of [OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE]
[ERROR] :  TiHTTPClient:    at java.net.HttpURLConnection.setRequestMethod(HttpURLConnection.java:685)
[ERROR] :  TiHTTPClient:    at com.android.okhttp.internal.http.HttpsURLConnectionImpl.setRequestMethod(HttpsURLConnectionImpl.java:144)
[ERROR] :  TiHTTPClient:    at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1137)
[ERROR] :  TiHTTPClient:    at java.lang.Thread.run(Thread.java:841)

有任何想法或解决方法吗?

0 个答案:

没有答案