Skip to content

empty request header values return HTTP 400 #138

@nilsnolde

Description

@nilsnolde

already communicated, but leaving it here for posterity:

if a particular header has an empty value, we're currently failing the request. likely the culprit is here:

size_t field_end, value_begin;
if ((field_end = partial_buffer.find(':')) == std::string::npos ||
(value_begin = partial_buffer.find_first_not_of(' ', field_end + 1)) ==
std::string::npos)
throw RESPONSE_400;
.

not a nice behavior of a client either (QGIS in my case), but apparently the spec allows it..

once fixed, wdyt about a new release @kevinkreiser ?

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