Skip to content

Commit

Permalink
content-type should be set within HurlStack by standard mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
JDLBeckman committed Aug 21, 2017
1 parent aa08fad commit ce219e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/android/volley/toolbox/HurlStack.java
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ private static void addBodyIfExists(HttpURLConnection connection, Request<?> req
if (body != null) {
addBody(connection, request, body);
} else if (request.providesBodyInCallback()) {
connection.setDoOutput(true);
connection.addRequestProperty(HEADER_CONTENT_TYPE, request.getBodyContentType());
request.provideBody(connection);
}
}
Expand Down

0 comments on commit ce219e1

Please sign in to comment.