Skip to content

fix: correctly urlencode query parameters#354

Merged
NTBBloodbath merged 1 commit intorest-nvim:mainfrom
flexagoon:urlencode-fix
Apr 12, 2024
Merged

fix: correctly urlencode query parameters#354
NTBBloodbath merged 1 commit intorest-nvim:mainfrom
flexagoon:urlencode-fix

Conversation

@flexagoon
Copy link
Copy Markdown
Contributor

Fixes #317

Splits the query into individual parameters and appends each one to the url using the U_APPENDQUERY flag. Handling of the = character is not needed due to how the flag works:

When CURLU_APPENDQUERY is used together with CURLU_URLENCODE, the first '=' symbol is not URL encoded.

See https://curl.se/libcurl/c/curl_url_set.html#CURLUAPPENDQUERY

@flexagoon flexagoon requested a review from NTBBloodbath as a code owner April 10, 2024 14:07
Copy link
Copy Markdown
Member

@NTBBloodbath NTBBloodbath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thank you very much for the patch! :)

@NTBBloodbath NTBBloodbath merged commit 38ceda9 into rest-nvim:main Apr 12, 2024
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.

Encoding of = in querystring

2 participants