maskit commented on code in PR #12485:
URL: https://github.com/apache/trafficserver/pull/12485#discussion_r2330654659


##########
src/proxy/http/HttpSM.cc:
##########
@@ -6308,9 +6308,11 @@ HttpSM::do_drain_request_body(HTTPHdr &response)
 void
 HttpSM::do_setup_client_request_body_tunnel(HttpVC_t to_vc_type)
 {
-  if (t_state.hdr_info.request_content_length == 0) {
-    // No tunnel is needed to transfer 0 bytes. Simply return without setting 
up
-    // a tunnel nor any of the other related logic around request bodies.
+  if (t_state.hdr_info.request_content_length == 0 ||

Review Comment:
   `t_state.hdr_info.request_content_length == 0` should be unnecessary because 
`has_request_body` checks `t_state.hdr_info.request_content_length > 0`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to