Send if-modified-since in the future

This commit is contained in:
Tobe O 2018-04-02 11:28:22 -04:00
parent 63e0d9d2f3
commit 2fdbfccd7d

View file

@ -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}');