Skip to content

Commit bc507c4

Browse files
authored
Mention response.IsError() also handles 3xx in example (#600)
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
1 parent 891326f commit bc507c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esapi/esapi.response_example_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func ExampleResponse_IsError() {
3535
}
3636
defer res.Body.Close()
3737

38-
// Handle error response (4xx, 5xx)
38+
// Handle error response (3xx, 4xx, 5xx)
3939
//
4040
if res.IsError() {
4141
log.Fatalf("ERROR: %s", res.Status())

0 commit comments

Comments
 (0)