Skip to content

Commit

Permalink
Merge pull request cfug#812 from nioncode/notModified
Browse files Browse the repository at this point in the history
do not treat 304 as good status code by default
  • Loading branch information
wendux authored Aug 7, 2020
2 parents 8c15919 + 55a3264 commit 1a45457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dio/lib/src/dio.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@ abstract class DioMixin implements Dio {
validateStatus: opt.validateStatus ??
options.validateStatus ??
(int status) {
return status >= 200 && status < 300 || status == 304;
return status >= 200 && status < 300;
},
receiveDataWhenStatusError: opt.receiveDataWhenStatusError ??
options.receiveDataWhenStatusError ??
Expand Down

0 comments on commit 1a45457

Please sign in to comment.