Skip to content

Commit 8503f20

Browse files
committed
fix: unix domain socket detection
1 parent 2cd9be2 commit 8503f20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ Request.prototype.init = function (options) {
378378
}
379379

380380
// Support Unix Sockets
381-
if (self.uri.host === 'unix') {
381+
if (self.uri.host === 'unix' || self.uri.host === 'unix:') {
382382
self.enableUnixSocket()
383383
}
384384

0 commit comments

Comments
 (0)