Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Issue bji#36 - Expires header is set incorrectly
Browse files Browse the repository at this point in the history
The "Expires" field is not needed for a create bucket request and
in fact, setting it to zero can cause some S3 implementations to
fail the request because well, it has expired.

Therefore, we set the "expires" S3PutParameter of the create bucket
call to -1 in order to bypass generating this HTTP header entirely.
  • Loading branch information
alexandersack authored and trel committed May 11, 2016
1 parent a48f7f9 commit ac72dc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bucket.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ void S3_create_bucket(S3Protocol protocol, S3STSDate stsDate, const char *access
0, // cacheControl
0, // contentDispositionFilename
0, // contentEncoding
0, // expires
-1, // expires
cannedAcl, // cannedAcl
0, // metaDataCount
0, // metaData
Expand Down

0 comments on commit ac72dc9

Please sign in to comment.