Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Now works outside Express also.

  • Loading branch information...
commit b0104aaa43bf9b0c1f30de235b8887394ae54424 1 parent db06fca
Golo Roden authored

Showing 2 changed files with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +1 1  lib/redirect.js
  2. +1 1  package.json
2  lib/redirect.js
@@ -11,7 +11,7 @@ var redirect = function(domain, configuration) {
11 11 statusCode;
12 12
13 13 if(hostHeader.indexOf('localhost') === 0 || hostHeader.indexOf(domain) === 0) {
14   - next();
  14 + if(next) next();
15 15 return;
16 16 }
17 17
2  package.json
... ... @@ -1,6 +1,6 @@
1 1 {
2 2 "name": "node-force-domain",
3   - "version": "0.0.3",
  3 + "version": "0.0.4",
4 4 "main": "./lib/redirect.js",
5 5 "description": "node-force-domain is a middleware for Express.js that allows you to configure a default domain and redirect any requests to other domains.",
6 6 "author": "Golo Roden <webmaster@goloroden.de> (http://www.goloroden.de)",

0 comments on commit b0104aa

Please sign in to comment.
Something went wrong with that request. Please try again.