diff options
author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-06-06 18:10:30 +0900 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-06-07 18:25:31 +0200 |
commit | c2cc3a5e97fb5572c6150ea038714a9ab088e079 (patch) | |
tree | 31e19262028edd5db37fe52437b4e5268ec689bc | |
parent | aa4e3c6438aafa077a6113353e940a3669077c79 (diff) | |
download | curl-c2cc3a5e97fb5572c6150ea038714a9ab088e079.tar.gz |
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; } |