mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-08-13 23:18:31 +02:00
[chore] Update gin to v1.9.0 (#1553)
This commit is contained in:
4
vendor/github.com/gin-gonic/gin/binding/protobuf.go
generated
vendored
4
vendor/github.com/gin-gonic/gin/binding/protobuf.go
generated
vendored
@ -6,7 +6,7 @@ package binding
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"net/http"
|
||||
|
||||
"google.golang.org/protobuf/proto"
|
||||
@ -19,7 +19,7 @@ func (protobufBinding) Name() string {
|
||||
}
|
||||
|
||||
func (b protobufBinding) Bind(req *http.Request, obj any) error {
|
||||
buf, err := ioutil.ReadAll(req.Body)
|
||||
buf, err := io.ReadAll(req.Body)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user