Ver código fonte

Update httpsify.go

Mohammed Al Ashaal 8 anos atrás
pai
commit
c5f49f569b
1 arquivos alterados com 0 adições e 3 exclusões
  1. 0 3
      httpsify.go

+ 0 - 3
httpsify.go

@@ -78,9 +78,6 @@ func main() {
 		req.Header.Set("X-Forwarded-Proto", "https")
 		req.Header.Set("X-Forwarded-Host", r.Host)
 		req.Header.Set("X-Forwarded-Port", *port)
-		req.URL.Path = r.URL.Path
-		req.URL.RawQuery = r.URL.RawQuery
-		req.URL.Fragment = r.URL.Fragment
 		res, err := http.DefaultClient.Do(req)
 		if err != nil {
 			http.Error(w, http.StatusText(504), 504)