Closed tristan-vrt closed 11 months ago
Updated Pull request with master and requested changes.
I forgot to remove the field callResponseInterceptorsAfterNotModified
. Updated my PR ☝️
Thanks for your contribution. This PR has been reworked internally and is now available in v3.5.0.
In Dio a
304 not modified
can be configured to be a valid status:BaseOptions(validateStatus: (status) => status != null && ((status >= 200 && status < 300) || status == 304))
This PR allows 304's to be handled in the onResponse flow. This way (having not modified as a valid status) the usual chain of onResponse interceptors will still trigger, unlike the error flow.