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

   ### Description
   
   Each item in a batch is a new HTTP request with its own body. The outer 
request's transfer encoding applies to the batch envelope, and a length 
supplied in shared headers may not describe an individual item.
   
   After merging headers, drop `Content-Length` and `Transfer-Encoding` from 
each item so the HTTP client can frame the request from its body. The 
regression test sends a chunked batch with two POST bodies of different lengths 
and checks the lengths and bodies received for both items.
   
   ### Verification
   
   Both batch request test suites passed locally (168 assertions). Luacheck 
passed for the modified plugin.
   
   ### 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
   - [x] I have updated the documentation to reflect this change
   - [x] I have verified that existing batch requests continue to work when the 
HTTP client supplies the framing
   


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