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:
YuviPanda 2013-01-28 21:31:32 +05:30
parent 77aae7526e
commit aab434d35e

View file

@ -26,12 +26,6 @@ public class CommonsApplication extends Application {
public static MWApi createMWApi() { public static MWApi createMWApi() {
DefaultHttpClient client = new DefaultHttpClient(); 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); return new MWApi(API_URL, client);
} }