Skip to content
Snippets Groups Projects
Commit 49d3f6e8 authored by Yawning Angel's avatar Yawning Angel
Browse files

Run go fmt on proxy_http.go (No functional changes).

parent c05a7a2e
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ type httpProxy struct {
haveAuth bool
username string
password string
forward proxy.Dialer
forward proxy.Dialer
}
func newHTTP(uri *url.URL, forward proxy.Dialer) (proxy.Dialer, error) {
......@@ -55,7 +55,7 @@ func newHTTP(uri *url.URL, forward proxy.Dialer) (proxy.Dialer, error) {
if uri.User != nil {
s.haveAuth = true
s.username = uri.User.Username()
s.password,_ = uri.User.Password()
s.password, _ = uri.User.Password()
}
return s, nil
......@@ -110,10 +110,10 @@ func (s *httpProxy) Dial(network, addr string) (net.Conn, error) {
// httpConn is the mountain of bullshit we need to do just for staleReader.
type httpConn struct {
remoteAddr *net.TCPAddr
httpConn *httputil.ClientConn
remoteAddr *net.TCPAddr
httpConn *httputil.ClientConn
hijackedConn net.Conn
staleReader *bufio.Reader
staleReader *bufio.Reader
}
func (c *httpConn) Read(b []byte) (int, error) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment