diff options
author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-06-06 18:10:30 +0900 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-06-24 23:44:42 +0200 |
commit | 1b5eba8324d0609381f000ae6eaf70fff36685d7 (patch) | |
tree | 930679e88b24b812763a1dc9b71cf6462f06f9e6 | |
parent | ddb106d7f62cd6151461f95bf489342822f0dbf5 (diff) |
http2: Use nghttp2 library error code for error return value
-rw-r--r-- | lib/http2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http2.c b/lib/http2.c index a6e2cc658..fc0d5de91 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -721,7 +721,7 @@ static int on_header(nghttp2_session *session, const nghttp2_frame *frame, if(!headp) { free(stream->push_headers); stream->push_headers = NULL; - return 1; + return NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE; } stream->push_headers = headp; } |