You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2023/01/24 17:23:20 UTC
[trafficserver] branch 9.2.x updated: Don't send response body on status 204 No Content (#9330)
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.2.x by this push:
new effa0af97 Don't send response body on status 204 No Content (#9330)
effa0af97 is described below
commit effa0af97cadbe7c22a2ca97df593a7f4cd935dc
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Mon Jan 23 17:26:35 2023 -0700
Don't send response body on status 204 No Content (#9330)
(cherry picked from commit da265380e1e77e47cdde1aae7b81292d5fea5905)
---
proxy/http/HttpSM.cc | 7 -------
1 file changed, 7 deletions(-)
diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc
index b77353fc7..ca4cd082f 100644
--- a/proxy/http/HttpSM.cc
+++ b/proxy/http/HttpSM.cc
@@ -6937,13 +6937,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 =