From 21c6ed3932ea3b850393133ce429ac40c6781bea Mon Sep 17 00:00:00 2001 From: qydysky Date: Fri, 20 Nov 2020 15:43:44 +0800 Subject: [PATCH] 93 --- Reqf.go | 1 + 1 file changed, 1 insertion(+) diff --git a/Reqf.go b/Reqf.go index d9f3fe0..08b1485 100644 --- a/Reqf.go +++ b/Reqf.go @@ -131,6 +131,7 @@ func (this *req) Reqf_1(val Rval) (error) { if _,ok := Header["Accept"];!ok {Header["Accept"] = `text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8`} if _,ok := Header["Connection"];!ok {Header["Connection"] = "keep-alive"} + if _,ok := Header["Accept-Encoding"];!ok {Header["Accept-Encoding"] = "gzip, deflate, br"} if _,ok := Header["User-Agent"];!ok {Header["User-Agent"] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36"} for k,v := range Header { -- 2.39.2