From 2fdbfccd7d3c1cf5fdfffe64888b25a7f1f3e95e Mon Sep 17 00:00:00 2001 From: Tobe O Date: Mon, 2 Apr 2018 11:28:22 -0400 Subject: [PATCH] Send `if-modified-since` in the future --- test/cache_test.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cache_test.dart b/test/cache_test.dart index 05ab6e74..ed0cfdd0 100644 --- a/test/cache_test.dart +++ b/test/cache_test.dart @@ -80,7 +80,7 @@ main() async { }); test('sends 304 on if-modified-since', () async { - var headers = {'if-modified-since': formatDateForHttp(lastModified)}; + var headers = {'if-modified-since': formatDateForHttp(lastModified.add(const Duration(days: 1)))}; var response = await client.get('/date.txt', headers: headers); print('Sending headers: $headers'); print('Response (${response.statusCode}): ${response.headers}');