Fix wrong detection of neverIndex bit

This commit is contained in:
Tatsuhiro Tsujikawa 2014-07-26 23:27:34 +09:00
parent 5b572d8d59
commit 961dcf614a
1 changed files with 1 additions and 1 deletions

View File

@ -1709,7 +1709,7 @@ ssize_t nghttp2_hd_inflate_hd(nghttp2_hd_inflater *inflater,
inflater->state = NGHTTP2_HD_STATE_READ_INDEX;
}
inflater->index_required = (*in & 0x40) != 0;
inflater->no_index = (*in & 0x10u) != 0;
inflater->no_index = (*in & 0xf0u) == 0x10u;
DEBUGF(fprintf(stderr,
"inflatehd: indexing required=%d, no_index=%d\n",
inflater->index_required,