diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2020-09-11 01:26:08 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-10-11 12:19:26 -0400 |
commit | 92e5a021d2abe9838f3ce31e2fe512493fc84855 (patch) | |
tree | afa9878b0dda0cb1d685084c65fd98bbd10f7f2a /src/http_header.h | |
parent | babf0d0e4c97dab7af08bc9d25f834c116f31919 (diff) | |
download | lighttpd-git-92e5a021d2abe9838f3ce31e2fe512493fc84855.tar.gz |
[core] http_header_hkey_get_lc() for HTTP/2
header field-names are required to be lowercase for HTTP/2
so specialize http_header_hkey_get() as http_header_hkey_get_lc()
for simpler comparison
lowercase field-names in http_headers[], as it does not matter for
buffer_eq_icase_ssn(), which is used with http_headers[] for HTTP/1.x
Diffstat (limited to 'src/http_header.h')
-rw-r--r-- | src/http_header.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http_header.h b/src/http_header.h index 3dc81120..17f6be89 100644 --- a/src/http_header.h +++ b/src/http_header.h @@ -43,6 +43,8 @@ enum http_header_e { __attribute_pure__ enum http_header_e http_header_hkey_get(const char *s, uint32_t slen); +__attribute_pure__ +enum http_header_e http_header_hkey_get_lc(const char *s, uint32_t slen); __attribute_pure__ int http_header_str_to_code (const char * const s); |