Module: ActionController::Live::ClassMethods

Defined in:
lib/action_controller/metal/live.rb

Instance Method Summary collapse

Instance Method Details

#make_response!(request) ⇒ Object



39
40
41
42
43
44
45
46
47
# File 'lib/action_controller/metal/live.rb', line 39

def make_response!(request)
  if request.get_header("HTTP_VERSION") == "HTTP/1.0"
    super
  else
    Live::Response.new.tap do |res|
      res.request = request
    end
  end
end