You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've published a new version that fixes this issue. I was a bit surprised that this was not caught on the unit tests but later understood that this was only happen when there's a need to serialise data. I've now added a unit test to make sure this does not happen again
Describe the bug
Caching crashes when responses do not have
cache-control
orexpires
headers setTo Reproduce
Make a request to any URL that does not return any of the
cache-control
orexpires
headers set.Expected behavior
The response should be successfully cached.
Version
stash_dio 2.0.2
Additional context
I believe there is a typo here:
stash/packages/stash_dio/lib/src/dio/cache_value.dart
Line 52 in de443ce
This line looks like it should be
?.
rather than!.
The text was updated successfully, but these errors were encountered: