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

Added support for haste maximum size

This commit is contained in:
John Crepezzi
2011-11-21 10:17:23 -05:00
parent 29a600fe87
commit a9e29c2986
4 changed files with 13 additions and 1 deletions

View File

@@ -47,6 +47,7 @@ http.createServer(function(request, response) {
if (incoming.pathname.match(/^\/documents$/) && request.method == 'POST') {
handler = new DocumentHandler({
keyLength: config.keyLength,
maxLength: config.maxLength,
store: preferredStore()
});
return handler.handlePost(request, response);