Use NGHTTP2_PROTOCOL_ERROR for NGHTTP2_ERR_HTTP_{HEADER,MESSAGING}

This commit is contained in:
Tatsuhiro Tsujikawa 2015-04-05 22:46:05 +09:00
parent d0c27d5229
commit 87602e5d72
1 changed files with 2 additions and 0 deletions

View File

@ -3170,6 +3170,8 @@ static int get_error_code_from_lib_error_code(int lib_error_code) {
case NGHTTP2_ERR_REFUSED_STREAM:
return NGHTTP2_REFUSED_STREAM;
case NGHTTP2_ERR_PROTO:
case NGHTTP2_ERR_HTTP_HEADER:
case NGHTTP2_ERR_HTTP_MESSAGING:
return NGHTTP2_PROTOCOL_ERROR;
default:
return NGHTTP2_INTERNAL_ERROR;