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

undefined method `ssl?' for #<Rack::Request > #34

Closed
tian-doxo opened this issue Jul 27, 2012 · 4 comments
Closed

undefined method `ssl?' for #<Rack::Request > #34

tian-doxo opened this issue Jul 27, 2012 · 4 comments

Comments

@tian-doxo
Copy link

in my Rails 3.0 app, I found once I have enforce_ssl set to true in initializer, I am getting this error on request:

NoMethodError (undefined method ssl?' for #<Rack::Request:0x7f973655c588>): .rvm/gems/ruby-1.8.7-p302@aspen/bundler/gems/oauth2-provider-0d9fcdf58b56/lib/oauth2/router.rb:68:indetect_transport_error'
.rvm/gems/ruby-1.8.7-p302@aspen/bundler/gems/oauth2-provider-0d9fcdf58b56/lib/oauth2/router.rb:13:in parse' .rvm/gems/ruby-1.8.7-p302@aspen/bundler/gems/oauth2-provider-0d9fcdf58b56/lib/oauth2/provider.rb:103:inparse'

I don't see ssl? method in Rack::Request either, is this gem relying on some other gems to provide ssl detection?

@jcoglan
Copy link
Contributor

jcoglan commented Aug 2, 2012

Which version of Rack are you running?

@tian-doxo
Copy link
Author

1.4.1

On 8/2/12 2:52 PM, "James Coglan"
<reply+i-5887337-4ba8e1dce65d881159977172135c0cd88305e0ea-852113@reply.gith
ub.com> wrote:

Which version of Rack are you running?


Reply to this email directly or view it on GitHub:
#34 (comment)

@jcoglan
Copy link
Contributor

jcoglan commented Aug 10, 2012

The method definitely exists, and has done for a long time.

https://github.com/rack/rack/blob/1.4.1/lib/rack/request.rb#L84

You ough to check that that file is being loaded correctly.

@jcoglan
Copy link
Contributor

jcoglan commented Aug 24, 2012

Closing. I'm fairly sure this is not an issue with oauth2-provider. If the method is not defined, there is something else wrong with your environment.

@jcoglan jcoglan closed this as completed Aug 24, 2012
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