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

Trying to replace host with port (hostname:5555) doesn't match #16

Open
bru73f0rc3 opened this issue Jan 21, 2022 · 1 comment
Open

Comments

@bru73f0rc3
Copy link

Hi,
I'm trying to perform the following replace:

replace {
    host1.com:4444 host2.com:5555
}

But it won't match host1.com:4444.
if i match only host1.com, no problem the replace works. if i match only 4444, no problem. If i match them in 2 separate lines it matches correctly:

replace {
    host1.com host2.com
    4444 5555
}

But the moment i have a colon it won't match.
also tried with re "host1.com.4444" "host2.com.5555" or just re ".4444" ".5555" no match.
If it makes a difference, i used the recommended order (order replace after encode), and my reverse_proxy is setup with header_up Accept-Encoding identity, or i wouldn't get any matches.
Any ideas?

@mholt
Copy link
Member

mholt commented Jan 24, 2022

Huh, that's really weird. I don't have time to dig into this right now but I wanted to let you know I read your issue.

If you want to dig into the code (I'm not sure if the problem is in my code or a dependency, probably mine), you're welcome to do so in the meantime; I don't want to hold you up! :)

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

No branches or pull requests

2 participants