summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
8aad4af)
... as enforce_header_order() asserts that the request line is present.
Without the request line the request will be rejected as invalid
later on anyway, so sorting the headers first is pointless.
- if (!filter_server_headers && !list_is_empty(csp->config->ordered_client_headers))
+ if (!filter_server_headers &&
+ !list_is_empty(csp->config->ordered_client_headers) &&
+ csp->headers->first->str != NULL)
{
enforce_header_order(csp->headers, csp->config->ordered_client_headers);
}
{
enforce_header_order(csp->headers, csp->config->ordered_client_headers);
}