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

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

Issue 29346561: Issue 4160 - Return headers in AndroidWebRequest (Closed)
Patch Set: Codestyle fixes #2 Created July 19, 2016, 9:49 a.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 bdf1408bd8bea5cfc45dd4510f653148435de0f5..85caa0aa13c6f803124f97244f51a0ab8af63617 100644
--- a/libadblockplus-android/src/org/adblockplus/android/AndroidWebRequest.java
+++ b/libadblockplus-android/src/org/adblockplus/android/AndroidWebRequest.java
@@ -132,13 +132,14 @@ public class AndroidWebRequest extends WebRequest
if (connection.getHeaderFields().size() > 0)
{
List<HeaderEntry> responseHeaders = new LinkedList<HeaderEntry>();
- for (Map.Entry<String, List<String>> eachEntry :
- connection.getHeaderFields().entrySet())
+ for (Map.Entry<String, List<String>> eachEntry : connection.getHeaderFields().entrySet())
anton 2016/07/19 09:50:30 decided to fit it into 1 line (though it's 101 cha
diegocarloslima 2016/09/06 23:02:14 This 'for' block still have wrong indentation. It
anton 2016/09/08 13:27:44 Acknowledged.
{
for (String eachValue : eachEntry.getValue())
{
if (eachEntry.getKey() != null && eachValue != null)
+ {
responseHeaders.add(new HeaderEntry(eachEntry.getKey(), 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