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

parse {placeholders} in request URLs #64

Merged
merged 1 commit into from
Nov 7, 2024
Merged

Conversation

miguelgrinberg
Copy link
Contributor

Some examples introduced in the 8.16 docs use placeholders in braces in URLs, for example:

GET /{index}/_search

This confused the parser, because the { character is also the start of the body. With this change any braces detected inside the URL are URIEncoded and skipped during request parsing.

Copy link
Member

@JoshMock JoshMock left a comment

Choose a reason for hiding this comment

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

LGTM!

@miguelgrinberg miguelgrinberg merged commit d81ce6b into main Nov 7, 2024
23 checks passed
@miguelgrinberg miguelgrinberg deleted the parser-improvements branch November 7, 2024 17:43
github-actions bot pushed a commit that referenced this pull request Nov 7, 2024
miguelgrinberg added a commit that referenced this pull request Nov 7, 2024
(cherry picked from commit d81ce6b)

Co-authored-by: Miguel Grinberg <[email protected]>
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.

2 participants