From 4dc9a40470098b9b73dda61718e0442ea1b9a4f1 Mon Sep 17 00:00:00 2001 From: shylinux Date: Fri, 7 May 2021 09:44:26 +0800 Subject: [PATCH] opt some --- base/web/spide.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/base/web/spide.go b/base/web/spide.go index 880ee78d..b41abc58 100644 --- a/base/web/spide.go +++ b/base/web/spide.go @@ -332,6 +332,9 @@ func init() { m.Resultv(data[ice.MSG_RESULT]) default: + b, _ := ioutil.ReadAll(res.Body) + m.Echo(string(b)) + break if strings.HasPrefix(res.Header.Get(ContentType), ContentHTML) { b, _ := ioutil.ReadAll(res.Body) m.Echo(string(b))