http2: Use nghttp2 library error code for error return value
This commit is contained in:
parent
ddb106d7f6
commit
1b5eba8324
@ -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…
x
Reference in New Issue
Block a user