Skip to content

Commit

Permalink
Update httpClient.go
Browse files Browse the repository at this point in the history
  • Loading branch information
denopink committed Feb 27, 2024
1 parent 2d0cea7 commit e2b43e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httpClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func getDoErrReason(err error) string {
return opErrReason
} else if errors.Is(err, net.UnknownNetworkError("")) {
return networkErrReason
} else if strings.TrimSpace(strings.ToLower(err.Error())) == "eof" {
} else if err := errors.Unwrap(err).Error(); strings.TrimSpace(strings.ToLower(err)) == "eof" {
return connectionUnexpectedlyClosedEOFReason
}

Expand Down

0 comments on commit e2b43e9

Please sign in to comment.