return correct obj and ws
This commit is contained in:
parent
dcc5ba0c7e
commit
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) {
|
||||||
|
|
Loading…
Reference in New Issue