last-modified header should be in rfc2822 format

This commit is contained in:
Ian Ward
2012-02-06 10:40:27 -05:00
parent fca703f63e
commit 41d42ad32e

View File

@@ -174,7 +174,7 @@ MBTiles.prototype.getTile = function(z, x, y, callback) {
} else {
var options = {
'Content-Type': MBTiles.utils.getMimeType(row.tile_data),
'Last-Modified': mbtiles._stat.mtime,
'Last-Modified': new Date(mbtiles._stat.mtime).toUTCString(),
'ETag': mbtiles._stat.size + '-' + Number(mbtiles._stat.mtime)
};
return callback(null, row.tile_data, options);