Skip to content

Commit

Permalink
Merge pull request #166 from karldoenitz/feature-v2.0.1
Browse files Browse the repository at this point in the history
bug fix #136
  • Loading branch information
karldoenitz authored Dec 8, 2024
2 parents 0b78f07 + 9f74885 commit 0025f76
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 0025f76

Please sign in to comment.