Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Append aws-chunked to Content-Encoding header if present #2859

Merged
merged 6 commits into from
Feb 1, 2023

Conversation

dlm6693
Copy link
Contributor

@dlm6693 dlm6693 commented Jan 30, 2023

Primarily in various S3 operations, users may provide a ContentEncoding parameter. This tells the service how the content that is being sent/requested is encoded. An example of this would be gzip. However, for streaming AWS operations (i.e. ones that have trailers) where a ChecksumAlgorithm parameter is provided, the SDK is currently overriding any user input to aws-chunked. Instead this special content encoding should be appended to the user input.

@dlm6693 dlm6693 requested a review from nateprewitt January 30, 2023 19:18
@codecov-commenter
Copy link

codecov-commenter commented Jan 30, 2023

Codecov Report

Base: 93.54% // Head: 93.55% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (08c5d4d) compared to base (8d2141e).
Patch coverage: 100.00% of modified lines in pull request are covered.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2859   +/-   ##
========================================
  Coverage    93.54%   93.55%           
========================================
  Files           63       63           
  Lines        13398    13400    +2     
========================================
+ Hits         12533    12536    +3     
+ Misses         865      864    -1     
Impacted Files Coverage Δ
botocore/httpchecksum.py 94.16% <100.00%> (+0.04%) ⬆️
botocore/auth.py 98.04% <0.00%> (+0.19%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@dlm6693
Copy link
Contributor Author

dlm6693 commented Jan 31, 2023

@nateprewitt I'll wait until #2860 is merged, then I'll update the functional test to rely on the defaults in the client constructor.

Copy link
Contributor

@nateprewitt nateprewitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit: Looks good once the tests wrap

@dlm6693 dlm6693 merged commit 3e70d06 into boto:develop Feb 1, 2023
aws-sdk-python-automation added a commit that referenced this pull request Feb 1, 2023
* release-1.29.62:
  Bumping version to 1.29.62
  Update to latest partitions and endpoints
  Update to latest models
  Append `aws-chunked` to `Content-Encoding` header if present (#2859)
  Add sensible defaults to default s3 client creator in tests (#2860)
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.

3 participants