You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ensure request body Content-Length is set correctly (#230)
* Avoid sending non-string body values
Fixes#217
* Add newline at EOF
* Document support for table of strings in request body
* Revert change preventing non string request bodies
* Add tests for different request body types
* Ensure request body Content-Length is set correctly
* Don't blindly set request content length
* Add more explicit support for chunked request body iterators
* Use new transfer encoding utility
* Add tests for client body reader
Fails on chunked input until supported by ngx_lua
* Improve transfer encoding check
Co-authored-by: Thijs Schreijer <thijs@thijsschreijer.nl>
Co-authored-by: Thijs Schreijer <thijs@thijsschreijer.nl>
*`body`: Therequestbodyasastring, atableofstrings, oraniteratorfunctionyieldingstringsuntilnilwhenexhausted. Notethatyoumustspecifya `Content-Length` for the request body, or specify `Transfer-Encoding: chunked` and have your function implement the encoding. See also: [get\_client\_body\_reader](#get_client_body_reader)).
0 commit comments