Skip to content

Instantly share code, notes, and snippets.

@kalabiyau
Created December 8, 2015 16:29
Show Gist options
  • Save kalabiyau/f25ac166b65031e0bdad to your computer and use it in GitHub Desktop.
Save kalabiyau/f25ac166b65031e0bdad to your computer and use it in GitHub Desktop.
diff --git i/actionpack/lib/action_controller/metal/live.rb w/actionpack/lib/action_controller/metal/live.rb
index 6804e57..5b4ad86 100644
--- i/actionpack/lib/action_controller/metal/live.rb
+++ w/actionpack/lib/action_controller/metal/live.rb
@@ -36,8 +36,7 @@ module ActionController
extend ActiveSupport::Concern
module ClassMethods
- def make_response!(response)
- request = response.request
+ def make_response!(request)
if request.get_header("HTTP_VERSION") == "HTTP/1.0"
super
else
@@ -288,8 +287,5 @@ module ActionController
response.close if response
end
- def set_response!(response)
- @_response = self.class.make_response! response
- end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment