Send if-modified-since
in the future
This commit is contained in:
parent
63e0d9d2f3
commit
2fdbfccd7d
1 changed files with 1 additions and 1 deletions
|
@ -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}');
|
||||
|
|
Loading…
Reference in a new issue