🔧 util._extend is deprecated, too

This commit is contained in:
Felix Rieseberg 2017-11-20 09:46:02 -08:00
parent 71b8eaf085
commit b8b3b441a7

View file

@ -115,7 +115,7 @@ class ClientRequest extends EventEmitter {
if (typeof options === 'string') { if (typeof options === 'string') {
options = url.parse(options) options = url.parse(options)
} else { } else {
options = util._extend({}, options) options = Object.assign({}, options);
} }
const method = (options.method || 'GET').toUpperCase() const method = (options.method || 'GET').toUpperCase()