Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Has been cancelled
13 lines
247 B
Go
13 lines
247 B
Go
package ginext
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"git.blackforestbytes.com/BlackForestBytes/goext/dataext"
|
|
)
|
|
|
|
func BodyBuffer(g *gin.Context) {
|
|
if g.Request.Body != nil {
|
|
g.Request.Body = dataext.NewBufferedReadCloser(g.Request.Body)
|
|
}
|
|
}
|