Commit 6af247b5 authored by ginuerzh's avatar ginuerzh

fix #462

parent 4d818442
...@@ -75,9 +75,7 @@ func (h *sniHandler) Handle(conn net.Conn) { ...@@ -75,9 +75,7 @@ func (h *sniHandler) Handle(conn net.Conn) {
conn.RemoteAddr(), conn.LocalAddr(), err) conn.RemoteAddr(), conn.LocalAddr(), err)
return return
} }
if !req.URL.IsAbs() {
req.URL.Scheme = "http" // make sure that the URL is absolute
}
handler := &httpHandler{options: h.options} handler := &httpHandler{options: h.options}
handler.Init() handler.Init()
handler.handleRequest(conn, req) handler.handleRequest(conn, req)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment