Failing to properly parse incoming HTTP requests
uBadRequest opened this issue · 1 comments
uBadRequest commented
simplehttpserver version: 0.0.5
Current Behavior:
Using rules to respond to incoming HTTPS requests aren't working as intended. If the first word doesn't match, it skips the entire request. The first word is usually the method.
For example, I created a rule that just matches on the word "GET", otherwise, it doesn't do anything.
Expected Behavior:
Look at the entire HTTP request for a match, not just the first word.
Steps To Reproduce:
- Create rules.yaml with a rule to respond to a GET request
- Run 'simplehttpserver -rules rules.yaml -tcp -tls -https -verbose -listen 127.0.0.1:443'

