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:
7
vendor/github.com/ugorji/go/codec/cbor.go
generated
vendored
7
vendor/github.com/ugorji/go/codec/cbor.go
generated
vendored
@ -7,6 +7,7 @@ import (
|
||||
"math"
|
||||
"reflect"
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
)
|
||||
|
||||
// major
|
||||
@ -629,7 +630,11 @@ func (d *cborDecDriver) DecodeBytes(bs []byte) (bsOut []byte) {
|
||||
}
|
||||
|
||||
func (d *cborDecDriver) 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 *cborDecDriver) DecodeTime() (t time.Time) {
|
||||
|
Reference in New Issue
Block a user