Skip to content

Commit

Permalink
more typos. s/resp/res/
Browse files Browse the repository at this point in the history
  • Loading branch information
lloyd committed Sep 23, 2011
1 parent 38d3e55 commit 9f28469
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions server/main.js
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9f28469

Please sign in to comment.