Revert "Refactor frontend"

This reverts commit 1950cc8db0.
This commit is contained in:
John Crepezzi 2012-03-19 18:17:39 -04:00
parent b43a55ffda
commit 13bb094fb3
10 changed files with 672 additions and 417 deletions

View file

@ -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 });