Merge pull request #7646 from andelf/fix-unix-socket-url

*: fix a bug in handling unix socket urls
This commit is contained in:
Anthony Romano
2017-04-05 09:24:38 -07:00
committed by GitHub
4 changed files with 9 additions and 6 deletions

View File

@ -184,6 +184,7 @@ func parseEndpoint(endpoint string) (proto string, host string, scheme string) {
case "http", "https":
case "unix":
proto = "unix"
host = url.Host + url.Path
default:
proto, host = "", ""
}