-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decode path-encoded URL components (#2332)
* Decode path-encoded URL components This change causes pct-encoded characters passed via path parameters to be correctly decoded as described in google.api.http (see: path template syntax) and as implemented in grpc-http-json-transcoding. A new configuration option is introduced, `WithDecodeMode()`, which understands several modes. Backwards compatibility is maintained, with the hope of UnescapingModeAllExceptReserved becoming the default mode in V3. * Add tests for URL path unescaping * Improve error handling for unescaping * docs: path parameter unescaping
- Loading branch information
Showing
6 changed files
with
350 additions
and
9 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
Oops, something went wrong.