Skip to content

Commit 4845fa0

Browse files
author
yanzhenjie
committed
Release version 1.0.3.
1 parent acdaa5b commit 4845fa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nohttp/src/main/java/com/yolanda/nohttp/BasicConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ else if (Build.VERSION.SDK_INT >= AndroidVersion.KITKAT)
271271
* @throws IOException if no InputStream could be created.
272272
*/
273273
protected InputStream getServerStream(int responseCode, String contentEncoding, HttpURLConnection urlConnection) throws IOException {
274-
if (responseCode > 400)
274+
if (responseCode >= 400)
275275
return getErrorStream(contentEncoding, urlConnection);
276276
else {
277277
return getInputStream(contentEncoding, urlConnection);

0 commit comments

Comments
 (0)