Fix some comments (#2983)

Signed-off-by: dockercui <dockercui@aliyun.com>
pull/2933/head^2
dockercui 2024-04-24 17:12:06 +08:00 committed by GitHub
parent 077968abec
commit 3a0313de85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -289,7 +289,7 @@ func parserRequestBodyFile(req *Request) error {
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 {
var err error
resp.RawResponse.Header.VisitAllCookie(func(key, value []byte) {

View File

@ -12,7 +12,7 @@ const (
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 {
return c.Locals(localsKeyAllowed) != nil
}

View File

@ -427,7 +427,7 @@ func findNextCharsetPosition(search string, charset []byte) int {
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 {
lastPosition := -1
for _, char := range charset {