Skip to content

Commit

Permalink
Merge pull request aws#545 from andrewgaul/s3-unknown-content-type
Browse files Browse the repository at this point in the history
Use Content-Type application/octet-stream when not set
  • Loading branch information
shorea committed Nov 30, 2015
2 parents a0e9061 + bec61e4 commit cc755dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3584,7 +3584,7 @@ private <X, Y extends AmazonWebServiceRequest> X invoke(Request<Y> request,
*/
if (!request.getHeaders().containsKey(Headers.CONTENT_TYPE)) {
request.addHeader(Headers.CONTENT_TYPE,
"application/x-www-form-urlencoded; charset=utf-8");
"application/octet-stream");
}
AWSCredentials credentials = awsCredentialsProvider.getCredentials();
if (originalRequest.getRequestCredentials() != null) {
Expand Down

0 comments on commit cc755dd

Please sign in to comment.