Skip to content

Commit

Permalink
Do not consider a redirect a successful status code
Browse files Browse the repository at this point in the history
  • Loading branch information
petrpavlik committed Dec 8, 2024
1 parent 398dff3 commit b971add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/IndiePitcherSwift/IndiePitcherSwift.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import NIOFoundationCompat

extension HTTPClientResponse {
var isOk: Bool {
status.code >= 200 && status.code < 400
status.code >= 200 && status.code < 300
}
}

Expand Down

0 comments on commit b971add

Please sign in to comment.