Skip to content

Commit

Permalink
Fix some comments
Browse files Browse the repository at this point in the history
Signed-off-by: dockercui <dockercui@aliyun.com>
  • Loading branch information
dockercui committed Apr 24, 2024
1 parent 077968a commit f2be81c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion middleware/earlydata/earlydata.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion path.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f2be81c

Please sign in to comment.