diff options
| author | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-09 18:48:10 -0400 |
|---|---|---|
| committer | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-09 20:19:27 -0400 |
| commit | e01c2a20352d252e40ea133d0f4665b2e7513582 (patch) | |
| tree | 81cf004f6be5c0de43d84400a9f7d78a54502cb0 /app/node_modules/okserver/index.js | |
| parent | a6e734472853328cca725acbbcad0416763e934e (diff) | |
Lil fixes + defensive programming
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) { |
