Permalink
Browse files

more typos. s/resp/res/

  • Loading branch information...
lloyd committed Sep 23, 2011
1 parent 38d3e55 commit 9f2846964acfbc9ba10c434a1c3fab8b304f0220
Showing with 6 additions and 6 deletions.
  1. +6 −6 server/main.js
View
@@ -194,18 +194,18 @@ app.post("/api/set", function (req, res) {
var email = req.session.email;
if (!email) {
resp.writeHead(400, {"Content-Type": "text/plain"});
resp.write("Bad Request: you must be authenticated to get your beer");
resp.end();
res.writeHead(400, {"Content-Type": "text/plain"});
res.write("Bad Request: you must be authenticated to get your beer");
res.end();
return;
}
var beer = req.body.beer;
if (!beer) {
resp.writeHead(400, {"Content-Type": "text/plain"});
resp.write("Bad Request: a 'beer' parameter is required to set your favorite beer");
resp.end();
res.writeHead(400, {"Content-Type": "text/plain"});
res.write("Bad Request: a 'beer' parameter is required to set your favorite beer");
res.end();
return;
}

0 comments on commit 9f28469

Please sign in to comment.