Browse Source

[core] ignore empty field-name from backends

Empty field-name is already ignored when generating response headers,
but this is an explicit skip of empty field-name sent from backends,
including field-names that look like HTTP/2 pseudo-headers, as those
begin with ':'.
master
Glenn Strauss 1 year ago
parent
commit
79e2f5baee
  1. 1
      src/http-header-glue.c

1
src/http-header-glue.c

@ -1027,6 +1027,7 @@ static int http_response_process_headers(request_st * const r, http_response_opt
}
key_len = value - key;
if (0 == key_len) continue; /*(already ignored when writing response)*/
do { ++value; } while (*value == ' ' || *value == '\t'); /* skip LWS */
id = http_header_hkey_get(key, key_len);

Loading…
Cancel
Save