Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Http client headers when array data is used.
When building a client request with constructor arguments, the headers should be applied before the body is set. This is necessary as setting the body can change the content-type based on the contents. Arrays are converted into urlencoded data, which needs to override the content-type on the request.
- Loading branch information
Showing
2 changed files
with
40 additions
and
1 deletion.
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