diff options
author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2014-08-07 23:10:21 +0900 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-08-07 16:54:45 +0200 |
commit | f05e1a991a642faeb531f80f78aaf1d11a2fb392 (patch) | |
tree | bfaca46c877727cef1d75b922642f5944bb6e9ea /lib | |
parent | 7ceada43affff8b971fa6be0acdd08eefb8ba991 (diff) |
HTTP/2: Reset promised stream, not its associated stream.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/http2.c b/lib/http2.c index aa3b5f1db..f57159084 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -263,7 +263,8 @@ static int on_frame_recv(nghttp2_session *session, const nghttp2_frame *frame, break; case NGHTTP2_PUSH_PROMISE: rv = nghttp2_submit_rst_stream(session, NGHTTP2_FLAG_NONE, - frame->hd.stream_id, NGHTTP2_CANCEL); + frame->push_promise.promised_stream_id, + NGHTTP2_CANCEL); if(nghttp2_is_fatal(rv)) { return rv; } |