Skip to content

Commit

Permalink
removed forbidden() util
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Oct 2, 2011
1 parent ac0b3af commit 9459968
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions lib/utils.js
Expand Up @@ -374,21 +374,6 @@ exports.conditionalGET = function(req) {
|| req.headers['if-none-match'];
};

/**
* Respond with 403 "Forbidden".
*
* @param {ServerResponse} res
* @api public
*/

exports.forbidden = function(res) {
var body = 'Forbidden';
res.setHeader('Content-Type', 'text/plain');
res.setHeader('Content-Length', body.length);
res.statusCode = 403;
res.end(body);
};

/**
* Respond with 401 "Unauthorized".
*
Expand Down

0 comments on commit 9459968

Please sign in to comment.