Skip to content

Instantly share code, notes, and snippets.

@manning79
Created March 26, 2012 21:16
Show Gist options
  • Select an option

  • Save manning79/2209777 to your computer and use it in GitHub Desktop.

Select an option

Save manning79/2209777 to your computer and use it in GitHub Desktop.
var parameters = url.parse(req.url, true).query;
if (req.body) {
for (var key in req.body) {
parameters[key] = req.body[key];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment