Skip to content

Commit

Permalink
bug fix #136
Browse files Browse the repository at this point in the history
  • Loading branch information
karldoenitz committed Dec 7, 2024
1 parent 1ca85ec commit 9f74885
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"gorm.io/gorm"
"html/template"
"io"
"io/ioutil"
"net/http"
"net/http/httputil"
"reflect"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9f74885

Please sign in to comment.