Adding chunked uploading test.

This commit is contained in:
ali.ibrahim 2016-10-07 16:34:36 +02:00
parent 9b94dfcbdc
commit 4eb9fc1bb6
2 changed files with 248 additions and 120 deletions

View file

@ -264,7 +264,7 @@ class ClientRequest extends EventEmitter {
// Since writing to the network is asynchronous, we conservatively
// assume that request headers are written after delivering the first
// buffer to the network IO thread.
if (!this._url_request.notStarted) {
if (this._url_request.notStarted) {
this._url_request.setChunkedUpload(this.chunkedEncoding)
}