Add some header names which won't be indexed

This commit is contained in:
Tatsuhiro Tsujikawa 2014-08-06 21:50:54 +09:00
parent 9c1a956e47
commit 49e3fd6862
1 changed files with 6 additions and 3 deletions

View File

@ -959,11 +959,14 @@ static int hd_deflate_should_indexing(nghttp2_hd_deflater *deflater,
return !name_match(nv, NGHTTP2_XHD);
#else /* !NGHTTP2_XHD */
return
!name_match(nv, "set-cookie") &&
!name_match(nv, ":path") &&
!name_match(nv, "content-length") &&
!name_match(nv, "location") &&
!name_match(nv, "set-cookie") &&
!name_match(nv, "etag") &&
!name_match(nv, ":path");
!name_match(nv, "if-modified-since") &&
!name_match(nv, "if-none-match") &&
!name_match(nv, "location") &&
!name_match(nv, "age");
#endif /* !NGHTTP2_XHD */
}