Skip to content

Conversation

@uwinkelvos
Copy link

Summary

Even if config.key_in_query is set to false, the query is still modified by the cleanup code. i.e. "%20" will be replaced by "+" for any query parameter. This maybe surprising to the user, as the config option was explicitly disabled.
For key_in_body this is already handled differently. I.e. body is only modified if key_in_body is true.
To make the cleanup code behave more consistent and expectable this PR makes the cleanup also conditional for query and header.

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/developer.konghq.com - PUT DOCS PR HERE

Issue reference

Even if config.key_in_query is set to false, the query is still
modified by the cleanup code. i.e. "%20" will be replaced by "+" for
any query parameter. This maybe suprising to the user, as the config
option was explicitly disabled.
For key_in_body this is already handled differently. I.e. body is
only modified if key_in_body is true.
To make the cleanup code behave more consistent and expectable this PR
makes the cleanup also conditional for query and header.
@CLAassistant
Copy link

CLAassistant commented Dec 3, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants