mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[chore] Update gin to v1.9.0 (#1553)
This commit is contained in:
9
vendor/github.com/ugorji/go/codec/msgpack.go
generated
vendored
9
vendor/github.com/ugorji/go/codec/msgpack.go
generated
vendored
@ -24,6 +24,7 @@ import (
|
||||
"net/rpc"
|
||||
"reflect"
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -872,7 +873,11 @@ func (d *msgpackDecDriver) DecodeBytes(bs []byte) (bsOut []byte) {
|
||||
}
|
||||
|
||||
func (d *msgpackDecDriver) DecodeStringAsBytes() (s []byte) {
|
||||
return d.DecodeBytes(nil)
|
||||
s = d.DecodeBytes(nil)
|
||||
if d.h.ValidateUnicode && !utf8.Valid(s) {
|
||||
d.d.errorf("DecodeStringAsBytes: invalid UTF-8: %s", s)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func (d *msgpackDecDriver) descBd() string {
|
||||
@ -1071,7 +1076,7 @@ func (d *msgpackDecDriver) decodeExtV(verifyTag bool, tag byte) (xbs []byte, xta
|
||||
|
||||
//--------------------------------------------------
|
||||
|
||||
//MsgpackHandle is a Handle for the Msgpack Schema-Free Encoding Format.
|
||||
// MsgpackHandle is a Handle for the Msgpack Schema-Free Encoding Format.
|
||||
type MsgpackHandle struct {
|
||||
binaryEncodingType
|
||||
BasicHandle
|
||||
|
Reference in New Issue
Block a user