Skip to content

Commit

Permalink
see this
Browse files Browse the repository at this point in the history
  • Loading branch information
chenbo01 committed Dec 17, 2015
1 parent 983aea5 commit 3f5e502
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/com/android/volley/toolbox/HurlStack.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,18 @@ public HttpResponse performRequest(Request<?> request, Map<String, String> addit
response.setEntity(entityFromConnection(connection));
for (Entry<String, List<String>> header : connection.getHeaderFields().entrySet()) {
if (header.getKey() != null) {
Header h = new BasicHeader(header.getKey(), header.getValue().get(0));
response.addHeader(h);
if (header.getKey() != null) {
String value = "";
for(String head : header.getValue()){
value += head + ";";
}

if(value.length() > 0) {
value = value.substring(0,value.length() - 1);
}
Header h = new BasicHeader(header.getKey(), value);
response.addHeader(h);
}
}
}
if (ENCODING_GZIP.equalsIgnoreCase(connection.getContentEncoding())) {
Expand Down

0 comments on commit 3f5e502

Please sign in to comment.