diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http2.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/http2.c b/lib/http2.c index dac9ab4a1..31949413b 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -424,6 +424,11 @@ static int on_header(nghttp2_session *session, const nghttp2_frame *frame, (void)frame; (void)flags; + /* Ignore PUSH_PROMISE for now */ + if(frame->hd.type != NGHTTP2_HEADERS) { + return 0; + } + if(frame->hd.stream_id != c->stream_id) { return 0; } |