Skip to content

Instantly share code, notes, and snippets.

@qharlie
Created March 26, 2012 21:16
Show Gist options
  • Save qharlie/2209777 to your computer and use it in GitHub Desktop.
Save qharlie/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