forked from boto/botocore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Account for squid proxy adding unexpected headers
Most servers (including S3) will just return the CLRF after the 100 continue response. However, some servers (I've specifically seen this for squid when used as a straight HTTP proxy) will also inject a Connection: keep-alive header. To account for this we'll read until we read '\r\n', and ignore any headers that come immediately after the 100 continue response. Fixes aws/aws-cli#1116
- Loading branch information
Showing
2 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters