Skip to content

Commit

Permalink
* [android] fix NPE in stream
Browse files Browse the repository at this point in the history
  • Loading branch information
sospartan committed Jun 24, 2016
1 parent e264f2a commit f5f8a4d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ public void onResponse(WXResponse response, Map<String, String> headers) {
} else {
resp.put("data",
readAsString(response.originalData,
headers.get("Content-Type")
headers!=null?headers.get("Content-Type"):""
));
}
resp.put(STATUS_TEXT, Status.getStatusText(response.statusCode));
Expand Down

0 comments on commit f5f8a4d

Please sign in to comment.