From 9f74885b0efc0b28850a89a7f18d6057c170202e Mon Sep 17 00:00:00 2001 From: karldoenitz Date: Sat, 7 Dec 2024 11:41:04 +0800 Subject: [PATCH] bug fix #136 --- web/handler.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/handler.go b/web/handler.go index 2184794..843e40f 100644 --- a/web/handler.go +++ b/web/handler.go @@ -12,7 +12,6 @@ import ( "gorm.io/gorm" "html/template" "io" - "io/ioutil" "net/http" "net/http/httputil" "reflect" @@ -49,7 +48,7 @@ func (baseHandler *BaseHandler) GetBody() []byte { return nil } defer func() { - ioReader := ioutil.NopCloser(bytes.NewBuffer(body)) + ioReader := io.NopCloser(bytes.NewBuffer(body)) baseHandler.Request.Body = ioReader }() baseHandler.ctxValMap["body"] = body