[fix] remove reWriteEncodeHeader

This commit is contained in:
wjqserver 2025-03-30 17:22:34 +08:00
parent 8adc9c87f9
commit c3e42f2feb
3 changed files with 6 additions and 6 deletions

View file

@ -2,7 +2,6 @@ package proxy
import (
"net/http"
"strings"
"github.com/gin-gonic/gin"
)
@ -21,8 +20,8 @@ func removeWSHeader(req *http.Request) {
req.Header.Del("Connection")
}
/*
func reWriteEncodeHeader(req *http.Request) {
if isGzipAccepted(req.Header) {
req.Header.Set("Content-Encoding", "gzip")
req.Header.Set("Accept-Encoding", "gzip")
@ -48,3 +47,4 @@ func isGzipAccepted(header http.Header) bool {
}
return false
}
*/