mirror of https://github.com/gofiber/fiber.git
removed print
parent
0d06e7ea90
commit
1e8700af58
1
ctx.go
1
ctx.go
|
@ -454,7 +454,6 @@ func (c *DefaultCtx) Cookies(key string, defaultValue ...string) string {
|
||||||
value := c.app.getString(c.fasthttp.Request.Header.Cookie(key))
|
value := c.app.getString(c.fasthttp.Request.Header.Cookie(key))
|
||||||
// If the value looks like binary data, return it as-is
|
// If the value looks like binary data, return it as-is
|
||||||
if len(value) > 0 && !utf8.ValidString(value) {
|
if len(value) > 0 && !utf8.ValidString(value) {
|
||||||
fmt.Println("Detected non-UTF8 cookie value, returning raw bytes")
|
|
||||||
return value
|
return value
|
||||||
}
|
}
|
||||||
return defaultString(c.sanitizeCookieValue(value), defaultValue)
|
return defaultString(c.sanitizeCookieValue(value), defaultValue)
|
||||||
|
|
Loading…
Reference in New Issue