-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a temporary workaround to set the Content-Type header (#255)
This define a custom RoundTripper to add the Content-Type header when it is needed. This commit should be reverted once hashicorp/consul#10204 is merged and released upstream. I did not write a test for this change but tested locally and the header is correctly present for PUT requests but not for GET or DELETE.
- Loading branch information
1 parent
79cf9e7
commit 70ccf8f
Showing
1 changed file
with
33 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