1
0
mirror of https://github.com/seejohnrun/haste-server.git synced 2026-01-07 17:09:14 +00:00

Merge branch 'master' into production

This commit is contained in:
John Crepezzi
2020-10-06 00:42:56 -04:00
30 changed files with 2388 additions and 144 deletions

View File

@@ -36,7 +36,7 @@ DocumentHandler.prototype.handleRawGet = function(key, response, skipExpire) {
this.store.get(key, function(ret) {
if (ret) {
winston.verbose('retrieved raw document', { key: key });
response.writeHead(200, { 'content-type': 'text/plain' });
response.writeHead(200, { 'content-type': 'text/plain; charset=UTF-8' });
response.end(ret);
}
else {
@@ -124,7 +124,7 @@ DocumentHandler.prototype.chooseKey = function(callback) {
} else {
callback(key);
}
});
}, true); // Don't bump expirations when key searching
};
DocumentHandler.prototype.acceptableKey = function() {