-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tornado_requests: set Content-Type header correctly for JSON
Dumping the data first to a string caused the Content-Type header to be set to application/x-www-form-urlencoded. Now if the request function gets a dict, it is converted to a JSON string and the Content-Type header is set to application/json. Signed-off-by: Thore Sommer <mail@thson.de>
- Loading branch information
Showing
2 changed files
with
11 additions
and
2 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