Skip to content

Commit

Permalink
搜图增加浏览器标头
Browse files Browse the repository at this point in the history
  • Loading branch information
hutiance committed Sep 30, 2021
1 parent 5a95929 commit a470aff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin_image_finder/keyword.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func soutuapi(keyword string) *resultjson {
fmt.Println(err)
}
req.Header.Add("accept", "application/json, text/plain, */*")

req.Header.Add("User-Agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
Expand Down

0 comments on commit a470aff

Please sign in to comment.