|
|
@ -269,7 +269,8 @@ func (hw *HandlerWrapper) Forward(resp http.ResponseWriter, req *http.Request, r |
|
|
|
|
|
|
|
|
|
|
|
if req.Method == "CONNECT" { |
|
|
|
if req.Method == "CONNECT" { |
|
|
|
b := []byte("HTTP/1.1 200 Connection Established\r\n" + |
|
|
|
b := []byte("HTTP/1.1 200 Connection Established\r\n" + |
|
|
|
"Proxy-Agent: gomitmproxy/" + Version + "\r\n\r\n") |
|
|
|
"Proxy-Agent: gomitmproxy/" + Version + "\r\n" + |
|
|
|
|
|
|
|
"Content-Length: 0" + "\r\n\r\n") |
|
|
|
_, err := connIn.Write(b) |
|
|
|
_, err := connIn.Write(b) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
mylog.Println("Write Connect err:", err) |
|
|
|
mylog.Println("Write Connect err:", err) |
|
|
|