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

remove body for GET/HEAD request in http binding #238

Closed
wants to merge 1 commit into from

Conversation

AllanZhengYP
Copy link
Contributor

fixes: aws/aws-sdk-js-v3#1633

This change doesn't affect RPC protocols because they use
POST all the time

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

fixes: aws/aws-sdk-js-v3#1633
This change doesn't affect RPC protocols because they use
POST all the time
@AllanZhengYP
Copy link
Contributor Author

Seems like Smithy does support GET/HEAD request with a body. But it will warn the users to make sure they know what they do: code.

Since the problem this PR to solve only exists in browsers. We should allow these requests with a body on modelling level. But in browser, the GET/HEAD requests' body will be omitted.

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.

ListBucketsCommand: Request with GET/HEAD method cannot have body
2 participants