Skip to content

Failing to properly parse incoming HTTP requests #82

@uBadRequest

Description

@uBadRequest

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.

image

For example, I created a rule that just matches on the word "GET", otherwise, it doesn't do anything.

image

Expected Behavior:

Look at the entire HTTP request for a match, not just the first word.

Steps To Reproduce:

  1. Create rules.yaml with a rule to respond to a GET request
  2. Run 'simplehttpserver -rules rules.yaml -tcp -tls -https -verbose -listen 127.0.0.1:443'

Anything else:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions