mirror of https://github.com/gofiber/fiber.git
parent
077968abec
commit
3a0313de85
|
@ -289,7 +289,7 @@ func parserRequestBodyFile(req *Request) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// parserResponseHeader will parse the response header and store it in the response
|
// parserResponseCookie will parse the response header and store it in the response
|
||||||
func parserResponseCookie(c *Client, resp *Response, req *Request) error {
|
func parserResponseCookie(c *Client, resp *Response, req *Request) error {
|
||||||
var err error
|
var err error
|
||||||
resp.RawResponse.Header.VisitAllCookie(func(key, value []byte) {
|
resp.RawResponse.Header.VisitAllCookie(func(key, value []byte) {
|
||||||
|
|
|
@ -12,7 +12,7 @@ const (
|
||||||
localsKeyAllowed contextKey = 0 // earlydata_allowed
|
localsKeyAllowed contextKey = 0 // earlydata_allowed
|
||||||
)
|
)
|
||||||
|
|
||||||
// IsEarlyData returns true if the request is an early-data request
|
// IsEarly returns true if the request is an early-data request
|
||||||
func IsEarly(c fiber.Ctx) bool {
|
func IsEarly(c fiber.Ctx) bool {
|
||||||
return c.Locals(localsKeyAllowed) != nil
|
return c.Locals(localsKeyAllowed) != nil
|
||||||
}
|
}
|
||||||
|
|
2
path.go
2
path.go
|
@ -427,7 +427,7 @@ func findNextCharsetPosition(search string, charset []byte) int {
|
||||||
return nextPosition
|
return nextPosition
|
||||||
}
|
}
|
||||||
|
|
||||||
// findNextCharsetPosition search the last char position from the charset
|
// findLastCharsetPosition search the last char position from the charset
|
||||||
func findLastCharsetPosition(search string, charset []byte) int {
|
func findLastCharsetPosition(search string, charset []byte) int {
|
||||||
lastPosition := -1
|
lastPosition := -1
|
||||||
for _, char := range charset {
|
for _, char := range charset {
|
||||||
|
|
Loading…
Reference in New Issue