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

Modified query parameter encoding to not percent-encode characters allowed in query strings per RFC3986 #124

Merged
merged 2 commits into from
May 12, 2022

Conversation

mraineri
Copy link
Contributor

From the RFC, the query string follows this definition: *( pchar / "/" / "?" )

pchar is defined as: unreserved / pct-encoded / sub-delims / ":" / "@"

unreserved is defined as: ALPHA / DIGIT / "-" / "." / "_" / "~"

sub-delims is defined as "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "="

So, characters like $ (and others used in Redfish) do not need to be percent-encoded per the RFC.

…lowed in query strings per RFC3986

Signed-off-by: Mike Raineri <michael.raineri@dell.com>
…erly without percent-encoding

Signed-off-by: Mike Raineri <michael.raineri@dell.com>
@mraineri mraineri merged commit 05659e3 into master May 12, 2022
@mraineri mraineri deleted the Query-Encoding branch May 12, 2022 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant