mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 00:01:10 +08:00
remove reWriteEncodeHeader
This commit is contained in:
parent
1adc3a3192
commit
978ece6fa0
2 changed files with 2 additions and 3 deletions
|
|
@ -2,7 +2,6 @@ package proxy
|
|||
|
||||
import (
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"github.com/cloudwego/hertz/pkg/app"
|
||||
)
|
||||
|
|
@ -19,6 +18,7 @@ func removeWSHeader(req *http.Request) {
|
|||
req.Header.Del("Connection")
|
||||
}
|
||||
|
||||
/*
|
||||
func reWriteEncodeHeader(req *http.Request) {
|
||||
|
||||
if isGzipAccepted(req.Header) {
|
||||
|
|
@ -46,3 +46,4 @@ func isGzipAccepted(header http.Header) bool {
|
|||
}
|
||||
return false
|
||||
}
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue