mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-14 03:06:50 -07:00
Added support for haste maximum size
This commit is contained in:
parent
29a600fe87
commit
a9e29c2986
4 changed files with 13 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue