http2: Use nghttp2 library error code for error return value
This commit is contained in:
committed by
Daniel Stenberg
parent
aa4e3c6438
commit
c2cc3a5e97
@@ -721,7 +721,7 @@ static int on_header(nghttp2_session *session, const nghttp2_frame *frame,
|
|||||||
if(!headp) {
|
if(!headp) {
|
||||||
free(stream->push_headers);
|
free(stream->push_headers);
|
||||||
stream->push_headers = NULL;
|
stream->push_headers = NULL;
|
||||||
return 1;
|
return NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE;
|
||||||
}
|
}
|
||||||
stream->push_headers = headp;
|
stream->push_headers = headp;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user