Skip to content

Commit

Permalink
Used the right response code for large uploads.
Browse files Browse the repository at this point in the history
  • Loading branch information
cskr committed Aug 27, 2010
1 parent aa39994 commit 1141b31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grasshopper/lib/multipart.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ exports.parse = function(context, callback) {
context.params = {};
var req = context.request;
if(new Number(req.headers['content-length']) > maxPostSize) {
context.handleError(new Error('LARGE_UPLOAD'));
context.renderError(413);
return;
}

Expand Down

0 comments on commit 1141b31

Please sign in to comment.