-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not set Content-Type if params are explicitly set to nil (#212)
* Do not set Content-Type if params are explicitly set to nil The breaking change was introduced with d016695 that disallows to send the payload with DELETE requests. Make the request method skip setting default Content-Type header if params are explicitly set to `nil`. * Minor cleanup * My bad: Hash#delete does not have Hash#fetch semantics
- Loading branch information
Showing
2 changed files
with
14 additions
and
15 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
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