From f4e9d3e4dd93218740134f5ffbd1debc7627d636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Thu, 2 May 2024 21:39:33 +0900 Subject: [PATCH] optimize: saucenao head --- plugin/saucenao/searcher.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/saucenao/searcher.go b/plugin/saucenao/searcher.go index 843a16eb..a083df49 100644 --- a/plugin/saucenao/searcher.go +++ b/plugin/saucenao/searcher.go @@ -8,6 +8,7 @@ import ( "reflect" "strconv" + "github.com/fumiama/terasu/http2" "github.com/sirupsen/logrus" zero "github.com/wdvxdr1123/ZeroBot" "github.com/wdvxdr1123/ZeroBot/message" @@ -134,7 +135,7 @@ func init() { // 插件主体 } } }) - resp, err := http.Head(result.Header.Thumbnail) + resp, err := http2.Head(result.Header.Thumbnail) msg := make(message.Message, 0, 3) if s > 80.0 { msg = append(msg, message.Text("我有把握是这个!"))