From e667fb870881d6c1889a6ba6ba244563e9865174 Mon Sep 17 00:00:00 2001 From: hutiance Date: Thu, 30 Sep 2021 14:24:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E5=9B=BE=E5=A2=9E=E5=8A=A0=E6=B5=8F?= =?UTF-8?q?=E8=A7=88=E5=99=A8=E6=A0=87=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin_image_finder/keyword.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin_image_finder/keyword.go b/plugin_image_finder/keyword.go index 040a2f7e..cdcb882d 100644 --- a/plugin_image_finder/keyword.go +++ b/plugin_image_finder/keyword.go @@ -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)