réplica de
https://github.com/therootcompany/request.js.git
sincronizado 2024-11-16 17:28:58 +00:00
return correct obj and ws
Este cometimento está contido em:
ascendente
dcc5ba0c7e
cometimento
db01707e13
9
index.js
9
index.js
@ -213,11 +213,16 @@ function setDefaults(defs) {
|
|||||||
if ('unix' !== (obj.hostname||obj.host||'').toLowerCase()) {
|
if ('unix' !== (obj.hostname||obj.host||'').toLowerCase()) {
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
obj.hostname = null;
|
|
||||||
|
obj.href = null;
|
||||||
|
obj.hostname = obj.host = null;
|
||||||
|
|
||||||
paths = (obj.pathname||obj.path||'').split(':');
|
paths = (obj.pathname||obj.path||'').split(':');
|
||||||
|
|
||||||
obj.socketPath = paths.shift();
|
obj.socketPath = paths.shift();
|
||||||
obj.pathname = obj.path = paths.join(':');
|
obj.pathname = obj.path = paths.join(':');
|
||||||
obj.href = null;
|
|
||||||
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
function urequest(opts, cb) {
|
function urequest(opts, cb) {
|
||||||
|
|||||||
Carregando…
x
Criar uma nova questão referindo esta
Bloquear um utilizador