Closed stephenfrank closed 2 months ago
I've tested this locally and, although I can't replicate the issue as I my requests are never never chunked, it does seem to resolve the issue if/when that does occur.
In short, our current check to determine whether the request size matches the expected content-length includes all headers rather than just the body.
Content-Length should be compared to the length of the request body otherwise
bufferLength()
includes the length of the headers and body