This commit is contained in:
wjqserver 2025-03-25 23:35:40 +08:00
parent 6c3280f850
commit 55158c0cb1
4 changed files with 141 additions and 241 deletions

View file

@ -20,6 +20,7 @@ func removeWSHeader(req *http.Request) {
}
func reWriteEncodeHeader(req *http.Request) {
if isGzipAccepted(req.Header) {
req.Header.Set("Content-Encoding", "gzip")
req.Header.Set("Accept-Encoding", "gzip")