From 721513d39a2781ea6852e535cd824c3b30411ed7 Mon Sep 17 00:00:00 2001 From: Masakazu Kitajo Date: Mon, 23 Jan 2023 14:46:04 -0700 Subject: [PATCH] Don't send response body on status 204 No Content --- proxy/http/HttpSM.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc index 5fcf0d2cf40..3eded703959 100644 --- a/proxy/http/HttpSM.cc +++ b/proxy/http/HttpSM.cc @@ -6877,13 +6877,6 @@ HttpSM::setup_server_transfer() nbytes = server_transfer_init(buf, hdr_size); - if (t_state.is_cacheable_due_to_negative_caching_configuration && - t_state.hdr_info.server_response.status_get() == HTTP_STATUS_NO_CONTENT) { - int s = sizeof("No Content") - 1; - buf->write("No Content", s); - nbytes += s; - } - HTTP_SM_SET_DEFAULT_HANDLER(&HttpSM::tunnel_handler); HttpTunnelProducer *p =