diff options
-rw-r--r-- | ThirdPartyProject.prop | 9 | ||||
-rw-r--r-- | src/org/apache/commons/codec/ThirdPartyProject.prop | 10 | ||||
-rw-r--r-- | src/org/apache/commons/logging/ThirdPartyProject.prop | 10 | ||||
-rw-r--r-- | src/org/apache/http/impl/client/DefaultHttpClient.java | 9 | ||||
-rw-r--r-- | src/org/apache/http/params/CoreProtocolPNames.java | 4 | ||||
-rw-r--r-- | src/org/apache/http/protocol/HTTP.java | 2 |
6 files changed, 40 insertions, 4 deletions
diff --git a/ThirdPartyProject.prop b/ThirdPartyProject.prop new file mode 100644 index 0000000..53360a3 --- /dev/null +++ b/ThirdPartyProject.prop @@ -0,0 +1,9 @@ +# Copyright 2010 Google Inc. All Rights Reserved. +#Fri Jul 16 10:03:08 PDT 2010 +currentVersion=4 +version=16/07/2008 +isNative=false +name=apache_commons_httpcomponents +keywords=apache commons httpcomponents +onDevice=true +homepage=http\://www.apache.org/dist/httpcomponents/httpclient/ diff --git a/src/org/apache/commons/codec/ThirdPartyProject.prop b/src/org/apache/commons/codec/ThirdPartyProject.prop new file mode 100644 index 0000000..036945c --- /dev/null +++ b/src/org/apache/commons/codec/ThirdPartyProject.prop @@ -0,0 +1,10 @@ +# Copyright 2010 Google Inc. All Rights Reserved. +#Fri Jul 16 10:03:08 PDT 2010 +currentVersion=1.4 +version=1.3 +isNative=false +feedurl=http\://commons.apache.org/codec/changes-report.html +name=apache_commons_codec +keywords=apache commons codec +onDevice=true +homepage=http\://commons.apache.org/codec/ diff --git a/src/org/apache/commons/logging/ThirdPartyProject.prop b/src/org/apache/commons/logging/ThirdPartyProject.prop new file mode 100644 index 0000000..988c487 --- /dev/null +++ b/src/org/apache/commons/logging/ThirdPartyProject.prop @@ -0,0 +1,10 @@ +# Copyright 2010 Google Inc. All Rights Reserved. +#Fri Jul 16 10:03:08 PDT 2010 +currentVersion=1.1.1 +version=1.1.1 +isNative=false +feedurl=http\://commons.apache.org/logging/RELEASE-NOTES.txt +name=apache_commons_logging +keywords=apache commons logging +onDevice=true +homepage=http\://commons.apache.org/logging/ diff --git a/src/org/apache/http/impl/client/DefaultHttpClient.java b/src/org/apache/http/impl/client/DefaultHttpClient.java index f0b694e..7dcb2a2 100644 --- a/src/org/apache/http/impl/client/DefaultHttpClient.java +++ b/src/org/apache/http/impl/client/DefaultHttpClient.java @@ -131,8 +131,15 @@ public class DefaultHttpClient extends AbstractHttpClient { HttpVersion.HTTP_1_1); HttpProtocolParams.setContentCharset(params, HTTP.DEFAULT_CONTENT_CHARSET); + + /* + * Android note: Send each request body without first asking the server + * whether it will be accepted. Asking first slows down the common case + * and results in "417 expectation failed" errors when a HTTP/1.0 server + * is behind a proxy. http://b/2471595 + */ HttpProtocolParams.setUseExpectContinue(params, - true); + false); // android-changed // determine the release version from packaged version info final VersionInfo vi = VersionInfo.loadVersionInfo diff --git a/src/org/apache/http/params/CoreProtocolPNames.java b/src/org/apache/http/params/CoreProtocolPNames.java index a42c5de..a0a726d 100644 --- a/src/org/apache/http/params/CoreProtocolPNames.java +++ b/src/org/apache/http/params/CoreProtocolPNames.java @@ -94,8 +94,8 @@ public interface CoreProtocolPNames { /** * <p> - * Activates 'Expect: 100-Continue' handshake for the - * entity enclosing methods. The purpose of the 'Expect: 100-Continue' + * Activates 'Expect: 100-continue' handshake for the + * entity enclosing methods. The purpose of the 'Expect: 100-continue' * handshake to allow a client that is sending a request message with * a request body to determine if the origin server is willing to * accept the request (based on the request headers) before the client diff --git a/src/org/apache/http/protocol/HTTP.java b/src/org/apache/http/protocol/HTTP.java index de76ca6..9223955 100644 --- a/src/org/apache/http/protocol/HTTP.java +++ b/src/org/apache/http/protocol/HTTP.java @@ -60,7 +60,7 @@ public final class HTTP { public static final String SERVER_HEADER = "Server"; /** HTTP expectations */ - public static final String EXPECT_CONTINUE = "100-Continue"; + public static final String EXPECT_CONTINUE = "100-continue"; /** HTTP connection control */ public static final String CONN_CLOSE = "Close"; |