Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pdk): make kong.service.request.clear_query_arg encode spaces as %20 instead of + #14277

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

bungle
Copy link
Member

@bungle bungle commented Feb 13, 2025

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.

KAG-6324

Checklist

  • The Pull Request has tests
  • A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
  • There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Issue reference

Fix FTI-6475

…%20 instead of +

### 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]>
@github-actions github-actions bot added core/pdk cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee labels Feb 13, 2025
@bungle bungle removed the cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee label Feb 13, 2025
@bungle bungle merged commit 479274e into master Feb 14, 2025
39 checks passed
@bungle bungle deleted the fix/pdk-clear-query-arg-space-encoding branch February 14, 2025 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants