Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: libadblockplus-android/src/org/adblockplus/android/AndroidWebRequest.java

Issue 29347161: Issue 4209 - Lower case of HTTP header names in AndroidWebRequest (Closed)
Patch Set: Created June 30, 2016, 12:04 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libadblockplus-android/src/org/adblockplus/android/AndroidWebRequest.java
diff --git a/libadblockplus-android/src/org/adblockplus/android/AndroidWebRequest.java b/libadblockplus-android/src/org/adblockplus/android/AndroidWebRequest.java
index 77ce37145b7a54d0649a476056fc954ecfc38158..4cb629088245a2941bde8ac264511f80ee790e9b 100644
--- a/libadblockplus-android/src/org/adblockplus/android/AndroidWebRequest.java
+++ b/libadblockplus-android/src/org/adblockplus/android/AndroidWebRequest.java
@@ -136,7 +136,7 @@ public class AndroidWebRequest extends WebRequest
connection.getHeaderFields().entrySet())
for (String eachValue : eachEntry.getValue())
if (eachEntry.getKey() != null && eachValue != null)
- responseHeaders.add(new HeaderEntry(eachEntry.getKey(), eachValue));
+ responseHeaders.add(new HeaderEntry(eachEntry.getKey().toLowerCase(), eachValue));
response.setReponseHeaders(responseHeaders);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld