Browse Source

Update httpsify.go

Mohammed Al Ashaal 9 years ago
parent
commit
3b59b6bd1a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      httpsify.go

+ 1 - 1
httpsify.go

@@ -58,7 +58,7 @@ func main() {
 	}
 	log.Fatal(http.Serve(listener, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
 		defer r.Body.Close()
-		req, err := http.NewRequest(r.Method, *backend + r.URL.Path, r.Body)
+		req, err := http.NewRequest(r.Method, *backend + r.URL.RequestURI(), r.Body)
 		if err != nil {
 			http.Error(w, http.StatusText(504), 504)
 			return