From b971add597e925f7ccca2b3f402a5fc66ea86bdf Mon Sep 17 00:00:00 2001 From: Petr Pavlik Date: Sun, 8 Dec 2024 13:44:57 +0100 Subject: [PATCH] Do not consider a redirect a successful status code --- Sources/IndiePitcherSwift/IndiePitcherSwift.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/IndiePitcherSwift/IndiePitcherSwift.swift b/Sources/IndiePitcherSwift/IndiePitcherSwift.swift index d95c69c..02da301 100644 --- a/Sources/IndiePitcherSwift/IndiePitcherSwift.swift +++ b/Sources/IndiePitcherSwift/IndiePitcherSwift.swift @@ -7,7 +7,7 @@ import NIOFoundationCompat extension HTTPClientResponse { var isOk: Bool { - status.code >= 200 && status.code < 400 + status.code >= 200 && status.code < 300 } }