Skip to content

Commit

Permalink
remove multipart, limit, and staticCache middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanong committed Jan 5, 2014
1 parent ff0e3a9 commit ec30812
Show file tree
Hide file tree
Showing 16 changed files with 8 additions and 1,337 deletions.
40 changes: 0 additions & 40 deletions examples/bodyParser.js

This file was deleted.

41 changes: 0 additions & 41 deletions examples/limit.js

This file was deleted.

5 changes: 0 additions & 5 deletions examples/public/form.html

This file was deleted.

37 changes: 0 additions & 37 deletions examples/upload-stream.js

This file was deleted.

29 changes: 0 additions & 29 deletions examples/upload.js

This file was deleted.

15 changes: 5 additions & 10 deletions lib/middleware/bodyParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
* Module dependencies.
*/

var multipart = require('./multipart')
, urlencoded = require('./urlencoded')
, json = require('./json');
var urlencoded = require('./urlencoded');
var json = require('./json');

/**
* Body parser:
Expand Down Expand Up @@ -52,17 +51,13 @@ var multipart = require('./multipart')
*/

exports = module.exports = function bodyParser(options){
var _urlencoded = urlencoded(options)
, _multipart = multipart(options)
, _json = json(options);
var _urlencoded = urlencoded(options);
var _json = json(options);

return function bodyParser(req, res, next) {
_json(req, res, function(err){
if (err) return next(err);
_urlencoded(req, res, function(err){
if (err) return next(err);
_multipart(req, res, next);
});
_urlencoded(req, res, next);
});
}
};
89 changes: 0 additions & 89 deletions lib/middleware/limit.js

This file was deleted.

Loading

0 comments on commit ec30812

Please sign in to comment.