JakeChampion commented on code in PR #13820:
URL: https://github.com/apache/trafficserver/pull/13820#discussion_r4248886908
##########
src/proxy/http/HttpTransact.cc:
##########
@@ -5819,9 +5819,9 @@ HttpTransact::check_request_validity(State *s, HTTPHdr
*incoming_hdr)
return RequestError_t::UNACCEPTABLE_TE_REQUIRED;
}
- // Require Content-Length/Transfer-Encoding for POST/PUSH/PUT
+ // Require Content-Length/Transfer-Encoding for POST/PUSH/PUT/QUERY
if ((scheme == URL_WKSIDX_HTTP || scheme == URL_WKSIDX_HTTPS) &&
- (method == HTTP_WKSIDX_POST || method == HTTP_WKSIDX_PUSH || method ==
HTTP_WKSIDX_PUT) &&
+ (method == HTTP_WKSIDX_POST || method == HTTP_WKSIDX_PUSH || method ==
HTTP_WKSIDX_PUT || method == HTTP_WKSIDX_QUERY) &&
s->client_info.transfer_encoding != TransferEncoding_t::CHUNKED) {
Review Comment:
A QUERY with no content isn't a meaningful request.
--
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]