Skip to content

Conversation

@juliens
Copy link
Member

@juliens juliens commented Jun 27, 2022

What does this PR do?

This PR fixes an issue with the HostRegexp matcher and the Query matcher.

Before the fix,HostRegexp used an empty host if the url path was http://@/ whereas the Host matcher used the host header, HostRegexp now uses the host header in case the url contains an empty host.

Before the fix Query considered semi-colons as invalid and so ignored all the query params, Query now handles ; as separator and sanitizes those ; with & when the request is forwarded to the backend.

Motivation

Fix some weird behaviour with negative matchers.

More

  • Added/updated tests
  • Added/updated documentation

@ldez ldez added this to the 2.7 milestone Jun 27, 2022
@juliens juliens changed the title Fix muxer Fix HostRegexp and Query muxers Jun 27, 2022
Copy link
Contributor

@ldez ldez left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@kevinpollet kevinpollet left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@rtribotte rtribotte left a comment

Choose a reason for hiding this comment

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

LGTM 👌

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.

5 participants