parent
b43a55ffda
commit
13bb094fb3
10 changed files with 672 additions and 417 deletions
|
@ -55,7 +55,7 @@ DocumentHandler.prototype.handlePost = function(request, response) {
|
|||
if (!buffer) {
|
||||
response.writeHead(200, { 'content-type': 'application/json' });
|
||||
}
|
||||
buffer += JSON.parse(data.toString()).data;
|
||||
buffer += data.toString();
|
||||
if (_this.maxLength && buffer.length > _this.maxLength) {
|
||||
cancelled = true;
|
||||
winston.warn('document >maxLength', { maxLength: _this.maxLength });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue