-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(pdk): make kong.service.request.clear_query_arg encode spaces as …
…%20 instead of + (#14277) ### Summary The `+` encoding is more correct (in query strings), but it seems to cause some problems with some users. As a short-term solution I propose that we just convert `+` to `%20`. This is more in-lines what Nginx and OpenResty seems to be doing as well. Signed-off-by: Aapo Talvensaari <[email protected]>
- Loading branch information
Showing
3 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
changelog/unreleased/kong/fix-pdk-clear-query-arg-space-encoding.yml
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,6 @@ | ||
message: | | ||
**kong.service.request.clear_query_arg**: Changed the encoding of spaces in query arguments from `+` | ||
to `%20` as a short-term solution to an issue that some users are reporting. While the `+` is correct | ||
encoding of space in querystrings, Kong uses `%20` in many other APIs (inherited from Nginx / OpenResty) | ||
type: breaking_change | ||
scope: Plugin |
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
479274e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bazel Build
Docker image available
kong/kong-dev:479274e1376ccd40fe16b0a42328c6624d7e1d4b
Artifacts available https://github.com/Kong/kong/actions/runs/13338199607