Skip to content

Make sure headers are always lowercase to avoid duplicate headers#307

Open
LJ1102 wants to merge 1 commit intoAutomattic:masterfrom
LJ1102:master
Open

Make sure headers are always lowercase to avoid duplicate headers#307
LJ1102 wants to merge 1 commit intoAutomattic:masterfrom
LJ1102:master

Conversation

@LJ1102
Copy link
Copy Markdown

@LJ1102 LJ1102 commented Jul 13, 2016

Some methods inject headers like 'Content-Length' or 'Content-Type',
however when the user provided headers were not the exact
same casing(eg. 'Content-type' instead of 'Content-Type') both headers
were sent, in cases where their content did not match this resulted in S3
resetting the connection without a clear error message.

Some methods inject headers like 'Content-Length' or 'Content-Type',
however in cases where the user provides headers that are not the exact
same casing(eg. 'Content-type' instead of 'Content-Type') both headers
were sent, in cases where their content did not match this resulted in S3
resetting the connection without a clear error message.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant