diff --git a/index.js b/index.js index f2099287c..0a43b9b83 100644 --- a/index.js +++ b/index.js @@ -247,7 +247,7 @@ function normalizeArguments(url, opts) { opts.method = opts.method.toUpperCase(); if (opts.hostname === 'unix') { - const matches = /(.+)\:(.+)/.exec(opts.path); + const matches = /(.+):(.+)/.exec(opts.path); if (matches) { opts.socketPath = matches[1];