Skip to content

Rack-based compression of two or more adjacent slashes in a URI into a single slash.

License

Notifications You must be signed in to change notification settings

ownadi/rack-slash_merger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rack-slash_merger Build Status Gem Version

A rack middleware for compressing of two or more adjacent slashes in a URI into a single slash.

Usage

Rails

Just add the gem to your gemfile and run bundle

gem 'rack-slash_merger'

Then restart your Rails server. No configuration is needed. The gem simply hooks itself into the Rack middleware call stack.

Other rack-based application

In your Gemfile add the gem

gem 'rack-slash_merger'

Add middleware to stack:

# config.ru
require 'rack/slash_merger'
use Rack::SlashMerger

License

MIT License. Copyright 2015 Adrian Lehmann

About

Rack-based compression of two or more adjacent slashes in a URI into a single slash.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages