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

transport/http: Add fix for HTTP request stream not seekable #357

Merged
merged 1 commit into from
Mar 8, 2022

Conversation

jasdel
Copy link
Contributor

@jasdel jasdel commented Mar 8, 2022

Adds a fix for the HTTP Request setStream to correctly handle empty
and empty unseekable teams. This fixes a bug where the HTTP request
would attempt to rewind an empty unseekable stream due to assumptions
that the stream would be nil if content length is 0.

Related to #356

Adds a fix for the HTTP Request setStream to correctly handle empty
and empty unseekable teams. This fixes a bug where the HTTP request
would attempt to rewind an empty unseekable stream due to assumptions
that the stream would be nil if content length is 0.

Related to #356
@jasdel jasdel requested a review from skmcgrail March 8, 2022 00:50
jasdel added a commit to jasdel/aws-sdk-go-v2 that referenced this pull request Mar 8, 2022
Fixes SDK's checksum handling of require checksum with unseekable
streams. Adds additional unit tests to validate the expected behavior of
empty streams that are unseekable.

Related to aws/smithy-go#357
@jasdel jasdel merged commit 4b04ac0 into main Mar 8, 2022
@jasdel jasdel deleted the fixup/StreamLength branch March 8, 2022 01:25
jasdel added a commit to aws/aws-sdk-go-v2 that referenced this pull request Mar 8, 2022
Fixes SDK's checksum handling of require checksum with unseekable
streams. Adds additional unit tests to validate the expected behavior of
empty streams that are unseekable.

Related to aws/smithy-go#357
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.

None yet

2 participants