Skip to content
Open

gofmt #573

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions http.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,9 @@ func ParseRequestURIBytes(rawurl []byte) (*URL, error) {
port = "443"
}
}
// Fixed wechat image url bug, url like http://[::ffff:183.192.196.102]/mmsns/lVxxxxxx
host = strings.TrimSuffix(strings.TrimPrefix(host, "[::ffff:"), "]")
hostport = net.JoinHostPort(host, port)
// Fixed wechat image url bug, url like http://[::ffff:183.192.196.102]/mmsns/lVxxxxxx
host = strings.TrimSuffix(strings.TrimPrefix(host, "[::ffff:"), "]")
hostport = net.JoinHostPort(host, port)
return &URL{hostport, host, port, host2Domain(host), path}, nil
}

Expand Down
2 changes: 1 addition & 1 deletion proxy_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ package main

import (
"net"
"syscall"
"strings"
"syscall"
)

func isErrConnReset(err error) bool {
Expand Down