Skip to content

Commit

Permalink
Fix #635: Do not propagate null response header from http-connector
Browse files Browse the repository at this point in the history
  • Loading branch information
olivergondza committed Apr 19, 2016
1 parent 9f4da56 commit 134f435
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ public Map<String, String> headers() {
Set<String> keys = headers.keySet();

for (String key : keys) {
if (key == null) continue; // Ignore null header where HttpURLConnection stores HTTP method info
List<String> values = headers.get(key);
for (String value : values) {
retHeaders.put(key, value);
Expand Down

0 comments on commit 134f435

Please sign in to comment.