Skip to content

Issue with Regex #860

@shoomoohin

Description

@shoomoohin

The regex on line 5260 that you're matching against on line 5263, appears to have an extra whitespace that causes the std::regex_match to fail and the response to not be sent ... at least in my circumstances (a GET)
Changing
const static std::regex re("(HTTP/1\.[01]) (\d{3}) (.?)\r\n");
to
const static std::regex re("(HTTP/1\.[01]) (\d{3})(.
?)\r\n");
does the trick.

This is working in VisStudio 2017 community fwiw ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions