🔧 Bonus ;
This commit is contained in:
parent
b8b3b441a7
commit
b029c088db
1 changed files with 1 additions and 1 deletions
|
@ -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 = Object.assign({}, options);
|
options = Object.assign({}, options)
|
||||||
}
|
}
|
||||||
|
|
||||||
const method = (options.method || 'GET').toUpperCase()
|
const method = (options.method || 'GET').toUpperCase()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue