Skip to content

The http_listener remaps the Date header to Data #1208

Closed
@ghost

Description

When receiving a request with the cpprestsdk http_listener, the Date header from the sent request is mapped to the Data header in the http_request of cpprestsdk.

According to line 47 in Release/src/http/listener/http_server_httpsys.cpp, the values of HttpServerAPIKnownHeaders are supposed to match the values of the _HTTP_HEADER_ID enum (defined here). HttpServerAPIKnownHeaders states Data as the third entry, whereas _HTTP_HEADER_ID lists Date.

If someone could please verify that the issue is indeed present and that the cuplrit is the suggested typo, I would gladly provide a pullrequest to be merged into this project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions