Skip to content

Commit fa831f1

Browse files
author
Ivan Kalinin
committed
Fix last-modified header
1 parent 3063735 commit fa831f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = {
2323
var now = Date.now();
2424

2525
if ('LastModified' in result) {
26-
res.setHeader('Last-Modified', result['LastModified']);
26+
res.header('Last-Modified', lastModified.toUTCString());
2727
}
2828

2929
if (ifModifiedSince &&

0 commit comments

Comments
 (0)