Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the Rack::SSL middleware configurable #3141

Merged
merged 1 commit into from Sep 27, 2011
Merged

Make the Rack::SSL middleware configurable #3141

merged 1 commit into from Sep 27, 2011

Conversation

jsl
Copy link
Contributor

@jsl jsl commented Sep 27, 2011

The Rails configuration option "enforce_ssl" is handy but is currently unable to take advantage of features in Rack::SSL, such as passing a Proc to the middleware to exclude certain urls or url patterns from being redirected to https. This patch allows the user to specify ssl_options which are passed directly to the Rack::SSL middleware on initialization if enforce_ssl is set to true.

Without this patch the user must insert the Rack::SSL middleware onto the stack manually in order to add configuration options.

This patch also adds a test for the passing of options to the Rack::SSL middleware and adds mention of the ability to configure Rack::SSL to configuring.textile.

josevalim added a commit that referenced this pull request Sep 27, 2011
Make the Rack::SSL middleware configurable
@josevalim josevalim merged commit 9a7e2b8 into rails:master Sep 27, 2011
@josevalim
Copy link
Contributor

Thanks for also patching the guides!

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.

None yet

2 participants