Socket
Book a DemoInstallSign in
Socket

rack-slash_merger

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rack-slash_merger

bundlerRubygems
Version
0.1.1
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 09 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts