🔧 util._extend is deprecated, too
This commit is contained in:
parent
71b8eaf085
commit
b8b3b441a7
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ class ClientRequest extends EventEmitter {
|
|||
if (typeof options === 'string') {
|
||||
options = url.parse(options)
|
||||
} else {
|
||||
options = util._extend({}, options)
|
||||
options = Object.assign({}, options);
|
||||
}
|
||||
|
||||
const method = (options.method || 'GET').toUpperCase()
|
||||
|
|
Loading…
Reference in a new issue