Module: ActionController::Live::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#make_response!(request) ⇒ Object



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

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