HttpClientRequest.contentLength incorrectly transmitted when using contentLength and header #30842
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
library-io
This is a simple reproduction of the issue dart-lang/http#110 is meant to fix
Given the following code
The server returns
However if
request.contentLength
is not set or if the call torequest.headers.set('content-length', encoded.length)
is moved above the setter the following response is received from the server.The text was updated successfully, but these errors were encountered: