mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-25 11:10:05 +08:00
搜图增加浏览器标头
This commit is contained in:
parent
2fef6f51b5
commit
e667fb8708
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user