Open bcsgh opened 1 year ago
@bcsgh I think your change fixes this issue, right?
I fixed some other issues. This one is still there because I gave up before firing out how to solve it (and because I'm not using that type of pattern):
https://github.com/etr/libhttpserver/blob/master/test/integ/basic.cpp#L1429-L1433
The #if 0
at the above should be switched to test for the correct behavior rather than demoing the wrong one.
Prerequisites
Description
This test here is in error because that map is populated with the URL including the regexp pattern.
This results in a url that includes the same text as the regex pattern matching, even if that text isn't matched by the regex.
Steps to Reproduce
Add the following to
test/integ/basic.cpp
(https://github.com/etr/libhttpserver/pull/309/commits/2ea297f680f63649715eababf2badb824e467638):Expected behavior: HTTP 404 (assuming the RE pattern doesn't match itself).
Actual behavior: HTTP 200
Reproduces how often: 100%
Versions
Current master branch