Explorar o código

Update httpsify.go

Mohammed Al Ashaal %!s(int64=8) %!d(string=hai) anos
pai
achega
5e0d4889fd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      httpsify.go

+ 1 - 1
httpsify.go

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