-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Content-Type custom payload bugs (#888)
* Fix Content-Type custom payload bugs When a custom payload body is used to work around unsupported content types, the Content-Type header must also be modified via the dictionary. This functionality had several bugs, which are fixed in this change. After this update, using either `restler_custom_payload_header` or `restler_custom_payload` with the request-specific syntax for dictionary payloads now works as expected, for example: "restler_custom_payload": { "/stores/{storeId}/order/post/Content-Type": [ "xml" ] } This change also fixes the same bugs with per-request syntax with restler_custom_payload_query. Testing: - manual testing with demo_server - added new compiler tests * Fix prefix computation per PR feedback
- Loading branch information
Showing
11 changed files
with
1,513 additions
and
36 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
Oops, something went wrong.