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

hsts => true doesn't work #28

Closed
nurey opened this issue Aug 30, 2011 · 2 comments
Closed

hsts => true doesn't work #28

nurey opened this issue Aug 30, 2011 · 2 comments

Comments

@nurey
Copy link

nurey commented Aug 30, 2011

I get:
TypeError (can't convert true into Hash)

@tobmatth
Copy link
Owner

Line 167 in https://github.com/tobmatth/rack-ssl-enforcer/blob/master/lib/rack/ssl-enforcer.rb expects the :hsts option to be a hash. I'll fix this when i'm back home this evening (maybe @rymai or @thibaudgg are faster). Please use an options hash like

:hsts => { :expires => 31536000, :subdomains => true }

for now. Thanks...

@tobmatth
Copy link
Owner

tobmatth commented Sep 5, 2011

Fixed in 464fc61, pushed new version to rubygems.org...

@tobmatth tobmatth closed this as completed Sep 5, 2011
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

No branches or pull requests

2 participants