No commit activity in last 3 years
No release in over 3 years
Rack-based compression of two or more adjacent slashes in a URI into a single slash.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

>= 0.4
 Project Readme

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