diff options
| author | julie lala <jules@okfoc.us> | 2015-04-11 11:42:27 -0400 |
|---|---|---|
| committer | julie lala <jules@okfoc.us> | 2015-04-11 11:42:27 -0400 |
| commit | 65c1c6541f98eb863f9a19533f4bdb4bd9e38514 (patch) | |
| tree | 84cbe0902cc355b9e1556c346f217d1a4cafd552 /app/node_modules/okserver/index.js | |
| parent | 0b6afc1d5aa8a2f33b1c21e04a10c3eaa43870c1 (diff) | |
| parent | 2b95bcf414f02551a384ef2020958e90431814dd (diff) | |
merge
Diffstat (limited to 'app/node_modules/okserver/index.js')
| -rw-r--r-- | app/node_modules/okserver/index.js | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/app/node_modules/okserver/index.js b/app/node_modules/okserver/index.js index 1645eaa..cf06b3c 100644 --- a/app/node_modules/okserver/index.js +++ b/app/node_modules/okserver/index.js @@ -67,16 +67,6 @@ function OKServer(options) { // Make sure this lady is last. Checks whether the desired // route has a trailing-slash counterpart and redirects there app.use(slash()); - - /** - * Create a handler which redirect all requests to - * the same route with a trailing slash appended - */ - function redirect(routeNoSlash) { - return function(req, res) { - res.redirect(301, routeNoSlash + '/'); - } - } } OKServer.prototype.listen = function listen(port) { |
