aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_cable/connection
diff options
context:
space:
mode:
Diffstat (limited to 'lib/action_cable/connection')
-rw-r--r--lib/action_cable/connection/base.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/action_cable/connection/base.rb b/lib/action_cable/connection/base.rb
index 6fb0a61743..cac127ab45 100644
--- a/lib/action_cable/connection/base.rb
+++ b/lib/action_cable/connection/base.rb
@@ -55,7 +55,9 @@ module ActionCable
@websocket.rack_response
else
- invalid_request
+ logger.info finished_request_message
+
+ respond_to_invalid_request
end
end
@@ -134,9 +136,8 @@ module ActionCable
end
- def invalid_request
- logger.info finished_request_message
- [404, {'Content-Type' => 'text/plain'}, ['Page not found']]
+ def respond_to_invalid_request
+ [ 404, { 'Content-Type' => 'text/plain' }, [ 'Page not found' ] ]
end
def websocket_alive?