Skip to content

Commit

Permalink
fix(ilanzou): add accept-encoding request header (#7796 close #7759)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason-Fly authored Jan 10, 2025
1 parent 31a7470 commit 6812ec9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/ilanzou/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ func (d *ILanZou) request(pathname, method string, callback base.ReqCallback, pr

req := base.RestyClient.R()
req.SetHeaders(map[string]string{
"Origin": d.conf.site,
"Referer": d.conf.site + "/",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 Edg/125.0.0.0",
"Origin": d.conf.site,
"Referer": d.conf.site + "/",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 Edg/125.0.0.0",
"Accept-Encoding": "gzip, deflate, br, zstd",
})

if callback != nil {
Expand Down

0 comments on commit 6812ec9

Please sign in to comment.