Skip to content

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.

3 participants