소스 검색

Update httpsify.go

Mohammed Al Ashaal 9 년 전
부모
커밋
7220fe48f6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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.Body)
+		req, err := http.NewRequest(r.Method, *backend + r.URL.Path, r.Body)
 		if err != nil {
 			http.Error(w, http.StatusText(504), 504)
 			return