Adding chunked uploading test.
This commit is contained in:
parent
9b94dfcbdc
commit
4eb9fc1bb6
2 changed files with 248 additions and 120 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue