fix #462
This commit is contained in:
parent
4d818442d7
commit
6af247b533
4
sni.go
4
sni.go
@ -75,9 +75,7 @@ func (h *sniHandler) Handle(conn net.Conn) {
|
||||
conn.RemoteAddr(), conn.LocalAddr(), err)
|
||||
return
|
||||
}
|
||||
if !req.URL.IsAbs() {
|
||||
req.URL.Scheme = "http" // make sure that the URL is absolute
|
||||
}
|
||||
|
||||
handler := &httpHandler{options: h.options}
|
||||
handler.Init()
|
||||
handler.handleRequest(conn, req)
|
||||
|
Loading…
Reference in New Issue
Block a user