locker95 opened a new pull request, #14172:
URL: https://github.com/apache/apisix/pull/14172

   ### Description
   
   `construct_forward_headers` already drops `content-length` because the body 
sent upstream is a plain Lua string. It did not drop `transfer-encoding`, so a 
client request that arrived chunked forwarded `Transfer-Encoding: chunked` 
while the body on the wire was unchunked. Real HTTP/1.1 upstreams reject that 
framing mismatch with 400.
   
   Same hop-by-hop stripping already exists in `serverless/generic-upstream` 
and `openapi-to-mcp`.
   
   #### Which issue(s) this PR fixes:
   Fixes #14152
   
   ### Checklist
   
   - [x] I have explained the need for this PR and the problem it solves
   - [x] I have explained the changes or the new features added to this PR
   - [x] I have added tests corresponding to this change
   - [ ] I have updated the documentation to reflect this change
   - [x] I have verified that this change is backward compatible (If not, 
please discuss on the [APISIX mailing 
list](https://github.com/apache/apisix/tree/master#community) first)


-- 
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