Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

[rules engine] Incorrect handling of absent Hosts header #12

Open
0xf104a opened this issue Jul 10, 2021 · 1 comment
Open

[rules engine] Incorrect handling of absent Hosts header #12

0xf104a opened this issue Jul 10, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@0xf104a
Copy link
Owner

0xf104a commented Jul 10, 2021

Describe the bug
When client does HTTP/1.0 request to server with Hosts handling configured the exception on server occurs.

To Reproduce
Any HTTP/1.0 request without Hosts header to MeowMeow server where Hosts handling is configured.

Expected behavior
No exception should occur.

OS & client (please complete the following information):
Unknown

Logs

=ERROR REPORT==== 9-Jul-2021::06:28:11.395303 ===
Error in process <0.1905.0> on node 'MeowMeow@ef6b9abe815b' with exit value:
{{badmatch,ok},
 [{handle,do_rules,2,[{file,"/buildroot/src/handle.erl"},{line,76}]},
  {handle,handle,2,[{file,"/buildroot/src/handle.erl"},{line,198}]},
  {handle,handler,3,[{file,"/buildroot/src/handle.erl"},{line,272}]}]}
@0xf104a 0xf104a added the bug Something isn't working label Jul 10, 2021
@0xf104a 0xf104a self-assigned this Jul 10, 2021
@0xf104a
Copy link
Owner Author

0xf104a commented Jul 10, 2021

The reason for this error is that some clients trying to do HTTP/1.1. request like if it was HTTP/1.0 request.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant