GitXplorerGitXplorer
m

redirect-trailing-slash

public
2 stars
2 forks
1 issues

Commits

List of commits on branch master.
Unverified
e3878c371ee43d7182f923ac3fd34398def12099

1.0.1

committed 9 years ago
Unverified
de173004475b600f43a23ff91c8819d25515df7e

Merge pull request #2 from bengourley/open-redirect-vulnerability

mmicroadam committed 9 years ago
Unverified
c06d843e155cd937b3f2f0c10126c358ffa5fac1

Various improvements

bbengourley committed 9 years ago
Unverified
29ba00bc3940d2e06837f82ddcbdde5907d90977

1.0.0

committed 9 years ago
Unverified
86e665c8911fed7b7e608fe0a07b7f37092d73f5

Merge pull request #1 from bengourley/open-redirect-vulnerability

mmicroadam committed 9 years ago
Unverified
4785bff983d12d232ef882f40af8f234ce67fa8c

Rewrite to fix open redirect vulnerability

bbengourley committed 9 years ago

README

The README file for this repository.

redirect-trailing-slash

Express middleware to redirect URLs with a trailing slash to the same URL without the slash

build status

Installation

npm install redirect-trailing-slash --save

Usage

  var express = require('express')
  var app = express()
  var redirectTrailingSlash = require('redirect-trailing-slash')

  app.use(redirectTrailingSlash)

  app.listen(3000)

Credits

Adam Duncan