Skip to content

Add support for multiple, semicolon-separated X-Accel-Mappings#853

Closed
nbibler wants to merge 1 commit into
rack:masterfrom
nbibler:support-multiple-header-mappings
Closed

Add support for multiple, semicolon-separated X-Accel-Mappings#853
nbibler wants to merge 1 commit into
rack:masterfrom
nbibler:support-multiple-header-mappings

Conversation

@nbibler

@nbibler nbibler commented May 8, 2015

Copy link
Copy Markdown

This updates the header-defined mapping functionality to match that of the explicitly-instantiated mappings.

In all current versions of Rack::Sendfile, a developer may define multiple mappings if they instantiate Sendfile with an Array of mappings. The ability to define multiple mappings is unavailable, however, when parsing the request environment's X-Accel-Mapping header.

This pull request introduces the ability to define multiple mappings in the X-Accel-Mapping request header.

@907th

907th commented May 12, 2016

Copy link
Copy Markdown

+1 on this!

@nbibler

nbibler commented Nov 30, 2018

Copy link
Copy Markdown
Author

Closing this PR since #1187 meets the need (although uses a slightly different data structure).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants