Skip to content

Instantly share code, notes, and snippets.

@elliotttf
Created November 21, 2012 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elliotttf/4127680 to your computer and use it in GitHub Desktop.
Save elliotttf/4127680 to your computer and use it in GitHub Desktop.
app.router.post('/', function() {
var loopString = '';
this.req.chunks.forEach(function(chunk) {
loopString += chunk;
});
if (this.req.chunks.toString() !== loopString) {
this.res.end('WAT?');
return;
}
this.res.end('yay');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment