replace-response icon indicating copy to clipboard operation
replace-response copied to clipboard

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

Open bru73f0rc3 opened this issue 3 years ago • 1 comments

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?

bru73f0rc3 avatar Jan 21 '22 23:01 bru73f0rc3

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! :)

mholt avatar Jan 24 '22 07:01 mholt