Skip to content

Commit 68993be

Browse files
committed
Handle any 2xx response as a success
1 parent afd8212 commit 68993be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

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

220-
if (status == 200 || status == 202) {
220+
if (status in 200..299) {
221221

222222
val bodyStream: InputStream?
223223
val bodyLength: Long?

0 commit comments

Comments
 (0)