mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Do not force HTTP/1.0
Ryan_Lane updated the https servers to properly handle Transfer-Encoding: Chunked. No need to force HTTP/1.0 anymore
This commit is contained in:
parent
77aae7526e
commit
aab434d35e
1 changed files with 0 additions and 6 deletions
|
|
@ -26,12 +26,6 @@ public class CommonsApplication extends Application {
|
|||
|
||||
public static MWApi createMWApi() {
|
||||
DefaultHttpClient client = new DefaultHttpClient();
|
||||
// Because WMF servers support only HTTP/1.0. Biggest difference that
|
||||
// this makes is support for Chunked Transfer Encoding.
|
||||
// I have this here so if any 1.1 features start being used, it
|
||||
// throws up.
|
||||
client.getParams().setParameter(CoreProtocolPNames.PROTOCOL_VERSION,
|
||||
HttpVersion.HTTP_1_0);
|
||||
return new MWApi(API_URL, client);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue