-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Encode application/x-www-form-urlencoded better
`application/x-www-form-urlencoded` defines `+` as meaning a space. All servers that accept this content type should interpret it that way, and most servers also interpret query strings the exact same way. Unfortunately, we weren't encoding `+` at all. And it turns out that `URLComponents.queryItems` also doesn't treat `+` specially. In the interests of maximum compatibility, we actually convert spaces to `%20` instead of to `+`.
- Loading branch information
Kevin Ballard
committed
Oct 20, 2016
1 parent
16e5c80
commit c81a51f
Showing
5 changed files
with
95 additions
and
27 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
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
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