瀏覽代碼

Update httpsify.go

Mohammed Al Ashaal 8 年之前
父節點
當前提交
f57878c71a
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      httpsify.go

+ 1 - 0
httpsify.go

@@ -78,6 +78,7 @@ 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 = r.URL
 		res, err := http.DefaultClient.Do(req)
 		if err != nil {
 			http.Error(w, http.StatusText(504), 504)