1
0
mirror of https://github.com/seejohnrun/haste-server.git synced 2025-12-13 01:15:55 +00:00

Kick expirations back on view

This commit is contained in:
John Crepezzi
2011-11-28 01:13:14 -05:00
parent cd9bf18d29
commit 92e0f579ca
5 changed files with 12 additions and 8 deletions

View File

@@ -89,7 +89,8 @@ connect.createServer(
});
// get documents
app.get('/documents/:id', function(request, response, next) {
return documentHandler.handleGet(request.params.id, response);
var skipExpire = !!config.documents[request.params.id];
return documentHandler.handleGet(request.params.id, response, skipExpire);
});
}),
// Otherwise, static