mirror of
https://github.com/curl/curl.git
synced 2026-07-24 14:27:16 +03:00
http2: Use nghttp2 library error code for error return value
This commit is contained in:
parent
ddb106d7f6
commit
1b5eba8324
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue