Skip to content

Commit

Permalink
Update file.go
Browse files Browse the repository at this point in the history
  • Loading branch information
SunMaybo committed Apr 8, 2021
1 parent de4b631 commit 36785d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/spider/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (f *FileSpider) getResponse(request Request) ([]byte, error) {
} else {
req.Header.Add("User-Agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:76.0) Gecko/20100101 Firefox/76.0")
}
r.Header.Add("accept-encoding","gzip, deflate, br")
req.Header.Add("accept-encoding","gzip, deflate, br")
response, err := client.Do(req)
if err != nil {
logs.S.Errorw("请求超时", "error", err.Error())
Expand Down

0 comments on commit 36785d7

Please sign in to comment.