Skip to content

Commit

Permalink
remove log mesg
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyettinger committed Oct 6, 2012
1 parent 9118cb5 commit 9dc9150
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions lib/express-force-domain.js
Expand Up @@ -2,13 +2,9 @@ var url = require('url');

module.exports = function(force_url){
var force_host = url.parse(force_url).host;
console.log("force:");
console.log(force_host);

return function(req, res, next) {
var requested_host = req.header("host");
console.log('requested:');
console.log(requested_host);

if ( requested_host == force_host ) {
next();
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "express-force-domain",
"version": "0.0.1",
"version": "0.0.2",
"description": "Force express 3.x to use a specific domain. Good for adding or removing www. and handling parked domains that redirect to your main domain.",
"main": "./lib/express-force-domain.js",
"scripts": {
Expand Down

0 comments on commit 9dc9150

Please sign in to comment.