Skip to content

Commit 6957b26

Browse files
committed
Handle any 2xx response as a success
1 parent 859c989 commit 6957b26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/quantumbadger/redreader/http/okhttp/OKHTTPBackend.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ class OKHTTPBackend private constructor() : HTTPBackend() {
242242
val status = response.code
243243
val body = response.body
244244

245-
if (status == 200 || status == 202) {
245+
if (status in 200..299) {
246246

247247
val bodyStream: InputStream?
248248
val bodyLength: Long?

0 commit comments

Comments
 (0)