Module: ActionController::Live::ClassMethods
- Defined in:
- lib/action_controller/metal/live.rb
Instance Method Summary collapse
Instance Method Details
#make_response!(request) ⇒ Object
60 61 62 63 64 65 66 67 68 |
# File 'lib/action_controller/metal/live.rb', line 60 def make_response!(request) if (request.get_header("SERVER_PROTOCOL") || request.get_header("HTTP_VERSION")) == "HTTP/1.0" super else Live::Response.new.tap do |res| res.request = request end end end |