Skip to content

WebServer should match headers using equalsIgnoreCase #2131

Closed
@enzosagretti

Description

@enzosagretti

I found an issue in "Parsing.cpp". (line 164)
else if (headerName == "Content-Length"){ contentLength = headerValue.toInt();

The compare between "headerName" and "Content-Length" must not be case sensitive. For this problem i can´t read HTTP_POST payload. I change this in my enviroment and work fine!!
else if (headerName == "content-length"){ contentLength = headerValue.toInt();

Could you change all HTTP header compare to not be case sensitive?

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions