Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

An Express middleware module that will redirect user HTTP requests that contain uppercase letters, to the same URL converted to lowercase, without modifying query parameters.

Notifications You must be signed in to change notification settings

iZettle/express-lowercase-paths

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This package is no longer maintained

Very similar to the unmaintained project express-uncapitalize, this middleware redirects any requests which contain uppercase chars to their lowercase forms. With two main changes from the original:

  1. Works with all utf-8 strings in paths
  2. Keeps query parameters intact

Installation

npm install express-lowercase-paths

Usage

var lowercasePaths = require("express-lowercase-paths")
app.use(lowercasePaths())

About

An Express middleware module that will redirect user HTTP requests that contain uppercase letters, to the same URL converted to lowercase, without modifying query parameters.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published