-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(runtime-handler): don't check for exact Content-Type matches (#392)
* fix(runtime-handler): don't check for exact Content-Type matches Content-Type headers may have the media type followed by a semicolon, followed by some parameters, for example "charset=UTF-8". This fix ensures that only the start of the Content-Type header matches application/json when stringifying the body to JSON. Fixes #391 * chore: add changeset --------- Co-authored-by: Victor Ayogu <[email protected]>
- Loading branch information
Showing
3 changed files
with
33 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@twilio/runtime-handler': patch | ||
--- | ||
|
||
Don't check for exact Content-Type matches |
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