fix: fix ClientRequest.getUploadProgress (#21388)
This commit is contained in:
parent
dc9beda182
commit
092e00f7f0
2 changed files with 12 additions and 1 deletions
|
@ -454,7 +454,7 @@ class ClientRequest extends Writable {
|
|||
}
|
||||
|
||||
getUploadProgress () {
|
||||
return { ...this._uploadProgress } || { active: false }
|
||||
return this._uploadProgress ? { ...this._uploadProgress } : { active: false }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue