summaryrefslogtreecommitdiffstats
path: root/core/java/android/net
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-07-01 11:19:50 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-07-01 11:19:50 -0700
commite10809d02cd16bb31e1e9b094c612094af08757c (patch)
tree36add26dde84a8bbeae13dbb1a0255b873d38160 /core/java/android/net
parent91a546d4a9b63e590cd2b56f1195981c50334e54 (diff)
parent7a5738624fa78e328b5f36c687c20b9cf0eb5a60 (diff)
downloadframeworks_base-e10809d02cd16bb31e1e9b094c612094af08757c.zip
frameworks_base-e10809d02cd16bb31e1e9b094c612094af08757c.tar.gz
frameworks_base-e10809d02cd16bb31e1e9b094c612094af08757c.tar.bz2
am 7a573862: Merge change 5720 into donut
Merge commit '7a5738624fa78e328b5f36c687c20b9cf0eb5a60' * commit '7a5738624fa78e328b5f36c687c20b9cf0eb5a60': Fix #1876303. Even rfc2616 4.2 says that "Field names are case-insensitive.", servers including Google internal uses case-sensitive checking for "Cookie". So change it.
Diffstat (limited to 'core/java/android/net')
-rw-r--r--core/java/android/net/http/RequestHandle.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/java/android/net/http/RequestHandle.java b/core/java/android/net/http/RequestHandle.java
index c4ee5b0..6a97951 100644
--- a/core/java/android/net/http/RequestHandle.java
+++ b/core/java/android/net/http/RequestHandle.java
@@ -159,11 +159,11 @@ public class RequestHandle {
e.printStackTrace();
}
- // update the "cookie" header based on the redirected url
- mHeaders.remove("cookie");
+ // update the "Cookie" header based on the redirected url
+ mHeaders.remove("Cookie");
String cookie = CookieManager.getInstance().getCookie(mUri);
if (cookie != null && cookie.length() > 0) {
- mHeaders.put("cookie", cookie);
+ mHeaders.put("Cookie", cookie);
}
if ((statusCode == 302 || statusCode == 303) && mMethod.equals("POST")) {