Parcourir la source

Finalized proxmox fix

Toby Chui il y a 7 mois
Parent
commit
f54850c84d
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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"}
 	}