perplexes / m2r

Mongrel2 Connection Adapter - Ruby Encrusted Steel-Reinforced Fist
MIT License
90 stars 11 forks source link

Connection informed of url scheme used #16

Closed mostlyobvious closed 12 years ago

mostlyobvious commented 12 years ago

Is it possible to retrieve wheter mongrel2 serves particular connection with SSL?

paneq commented 12 years ago

https://github.com/rfk/m2wsgi/blob/master/m2wsgi/io/base.py#L980

mostlyobvious commented 12 years ago

Seems to be default in most of adapters: https://github.com/rack/rack/blob/master/lib/rack/handler/webrick.rb#L48

paneq commented 12 years ago

https://github.com/zedshaw/mongrel2/issues/140

paneq commented 12 years ago

I would rather guess based on this ENV if present and based on port otherwise. Sorry for those who use 443 to serve pure HTTP :)

paneq commented 12 years ago

This was fixed in m2 and we can start working on it.

paneq commented 12 years ago

I wanted to check it in 1.8.0 relased but: https://github.com/zedshaw/mongrel2/issues/145