From 3c4449c046d04263da53ded448333089b9213a9d Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 10 Nov 2021 19:18:48 +0900 Subject: [PATCH] nghttpx: Use nghttp3 error code --- src/shrpx_http3_upstream.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shrpx_http3_upstream.cc b/src/shrpx_http3_upstream.cc index 8fdd786b..28749287 100644 --- a/src/shrpx_http3_upstream.cc +++ b/src/shrpx_http3_upstream.cc @@ -2072,7 +2072,7 @@ int Http3Upstream::http_end_request_headers(Downstream *downstream) { // For HTTP/2 proxy, we require :authority. if (method_token != HTTP_CONNECT && config->http2_proxy && faddr->alt_mode == UpstreamAltMode::NONE && !authority) { - shutdown_stream(downstream, NGHTTP2_PROTOCOL_ERROR); + shutdown_stream(downstream, NGHTTP3_H3_GENERAL_PROTOCOL_ERROR); return 0; } @@ -2283,7 +2283,7 @@ int Http3Upstream::http_end_stream(Downstream *downstream) { if (downstream->end_upload_data() != 0) { if (downstream->get_response_state() != DownstreamState::MSG_COMPLETE) { - shutdown_stream(downstream, NGHTTP2_INTERNAL_ERROR); + shutdown_stream(downstream, NGHTTP3_H3_INTERNAL_ERROR); } }