Skip to content

Commit 4b886f6

Browse files
committed
Merge pull request #7 from eyakubovich/master
Split path at colon at most once
2 parents 7d09df5 + c127648 commit 4b886f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unixhttp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func main() {
5454
os.Exit(1)
5555
}
5656

57-
hostAndPath := strings.Split(u.Path, ":")
57+
hostAndPath := strings.SplitN(u.Path, ":", 2)
5858
if len(hostAndPath) < 2 {
5959
usage()
6060
os.Exit(1)

0 commit comments

Comments
 (0)