From 6af247b533d4f0c76f747767943d69edaf82c9c3 Mon Sep 17 00:00:00 2001 From: ginuerzh Date: Sat, 4 Jan 2020 16:19:43 +0800 Subject: [PATCH] fix #462 --- sni.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sni.go b/sni.go index 88031c1..5a25cb3 100644 --- a/sni.go +++ b/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)