Skip to content

Commit fd9d332

Browse files
authored
fix bug future headers (#6)
1 parent eb2e6ea commit fd9d332

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.0.2
2+
3+
- fix bug `futureHeaders` attribute
4+
15
## 0.0.1
26

37
- Invalidate key with `Pattern`

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ packages:
108108
path: ".."
109109
relative: true
110110
source: path
111-
version: "0.0.1"
111+
version: "0.0.2"
112112
http_parser:
113113
dependency: transitive
114114
description:

lib/src/http_cache.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class _HttpCacheState<T> extends State<HttpCache<T>> {
127127
void _initialize() async {
128128
assertionHttpCache(widget.staleTime, widget.cacheTime);
129129

130-
headers = widget.futureHeaders == null
130+
headers = widget.futureHeaders != null
131131
? await widget.futureHeaders
132132
: widget.headers;
133133

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: http_cache_flutter
22
description: Cacheable http request with interactive widget. Our goal is we can fetching and caching http request only with one widget
3-
version: 0.0.1
3+
version: 0.0.2
44
homepage: https://github.com/nggepe/http_cache_flutter
55

66
environment:

0 commit comments

Comments
 (0)