瀏覽代碼

Finalized proxmox fix

Toby Chui 7 月之前
父節點
當前提交
f54850c84d
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      mod/dynamicproxy/dpcore/dpcore.go

+ 2 - 2
mod/dynamicproxy/dpcore/dpcore.go

@@ -313,8 +313,8 @@ func (p *ReverseProxy) ProxyHTTP(rw http.ResponseWriter, req *http.Request, rrr
 	// Rewrite outbound UA, must be after user headers
 	rewriteUserAgent(outreq.Header, "Zoraxy/"+rrr.Version)
 
-	//Fix proxmox transfer encoding bug if detected Proxmox Cookie with POST request
-	if outreq.Method == http.MethodPost && domainsniff.IsProxmox(req) {
+	//Fix proxmox transfer encoding bug if detected Proxmox Cookie
+	if domainsniff.IsProxmox(req) {
 		outreq.TransferEncoding = []string{"identity"}
 	}