openziti / tlsuv

TLS and HTTP(s) client library for libuv
https://docs.openziti.io/tlsuv/
MIT License
43 stars 5 forks source link

process_requests() should honor 'Content-Length' header added by client #42

Closed rentallect closed 1 week ago

rentallect commented 4 years ago

For POST requests, The process_requests() function auto-calculates a Content-Length header based on any chunks that might exist in the request body.

This is problematic because 1) the client may have already added the Content-Length header, and 2) the client may not have added all chunks to the request body before process_requests() executes.