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

Bugfix: resolve absent Content-Length / Transfer-Encoding headers for HTTP/2 PUT / POST requests #500

Merged
merged 2 commits into from
Jun 7, 2023

Conversation

manicminer
Copy link
Contributor

@manicminer manicminer commented Jun 6, 2023

  • dependencies: updating to v0.7.4 of github.com/hashicorp/go-retryablehttp
  • remove ineffectual setting of Content-Length header

Ref: hashicorp/go-retryablehttp#194
Supercedes: #448

@manicminer manicminer added bug Something isn't working dependencies Pull requests that update a dependency file labels Jun 6, 2023
@manicminer manicminer requested a review from a team as a code owner June 6, 2023 18:22
With hashicorp/go-retryablehttp v0.7.4, the Content-Length header should
be set implicitly by net/http in the case of PUT/POST requests that have no body

Setting the `Content-Length` and/or `Transfer-Encoding` headers has no
effect for http.Request as both these headers are built at send time.
@manicminer manicminer force-pushed the bugfix/content-length-header branch from 83cf986 to 69ece91 Compare June 6, 2023 18:45
@tombuildsstuff tombuildsstuff added the release-once-merged The SDK should be released once this PR is merged label Jun 7, 2023
@tombuildsstuff tombuildsstuff merged commit 8c71939 into main Jun 7, 2023
@tombuildsstuff tombuildsstuff deleted the bugfix/content-length-header branch June 7, 2023 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file release-once-merged The SDK should be released once this PR is merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants