]> git.kaiwu.me - nginx.git/commit
HTTP/2: precalculate hash for "Cookie".
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 15 Feb 2018 16:06:22 +0000 (19:06 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 15 Feb 2018 16:06:22 +0000 (19:06 +0300)
commit9e2cd6282f05b48d018de6dff87efc28a7d8b3fa
treeec5a81cca2e2f6b9687d8b15a774b13fae77724e
parent89661c0e7d90fd493fc753d388d64c134f3bb3ad
HTTP/2: precalculate hash for "Cookie".

There is no need to calculate hashes of static strings at runtime.  The
ngx_hash() macro can be used to do it during compilation instead, similarly
to how it is done in ngx_http_proxy_module.c for "Server" and "Date" headers.
src/http/v2/ngx_http_v2.c