Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
imroc committed Apr 7, 2024
1 parent 3885b33 commit 34bd522
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions request.go
Original file line number Diff line number Diff line change
Expand Up @@ -661,8 +661,8 @@ func (r *Request) do() (resp *Response, err error) {
resp, err = r.client.roundTrip(r)
}

// Determine if the error is from a cancelled context. Store it here so it doesn't get lost
// when processing the AfterRespon middleware.
// Determine if the error is from a canceled context.
// Store it here so it doesn't get lost when processing the AfterResponse middleware.
contextCanceled := errors.Is(err, context.Canceled)

for _, f := range r.afterResponse {
Expand Down

0 comments on commit 34bd522

Please sign in to comment.