Class: Thin::Glazed::HttpsGlazing
- Inherits:
-
HttpGlazing
- Object
- EventMachine::Connection
- HttpGlazing
- Thin::Glazed::HttpsGlazing
- Defined in:
- lib/thin/glazed/https_glazing.rb
Instance Attribute Summary
Attributes inherited from HttpGlazing
Instance Method Summary collapse
Methods inherited from HttpGlazing
#initialize, #relay_from_client, #unbind, #unbind_client
Constructor Details
This class inherits a constructor from Thin::Glazed::HttpGlazing
Instance Method Details
#post_init ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/thin/glazed/https_glazing.rb', line 2 def post_init start_tls( :private_key_file => File.join(cert_path, 'glazed.key'), :cert_chain_file => File.join(cert_path, 'glazed.pem'), :verify_peer => false ) end |
#receive_data(data) ⇒ Object
10 11 12 |
# File 'lib/thin/glazed/https_glazing.rb', line 10 def receive_data(data) super data.gsub(/\r\n\r\n/, "\r\nX_FORWARDED_PROTO: https\r\n\r\n") end |