Skip to content

Instantly share code, notes, and snippets.

@lucaswxp
Created February 12, 2015 17:56
Show Gist options
  • Save lucaswxp/766faddb92dd219d7ca0 to your computer and use it in GitHub Desktop.
Save lucaswxp/766faddb92dd219d7ca0 to your computer and use it in GitHub Desktop.
Disable bodyparser in sails 0.9.x

In config/local.js just set bodyParser to return a placeholder function:

module.exports.express.bodyParser = function(){
  return function(req, res, next){ next(); }
}

Setting the property to false won't work because of a bug, so that's the best we got.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment