Skip to content

Commit 67ab4c3

Browse files
authored
Merge pull request rails#45788 from Erol/fix-reject-unauthorized-connection-description
Correct the description for reject_unauthorized_connection
2 parents c54b26d + 69c8b6b commit 67ab4c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actioncable/lib/action_cable/connection/authorization.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Connection
55
module Authorization
66
class UnauthorizedError < StandardError; end
77

8-
# Closes the WebSocket connection if it is open and returns a 404 "File not Found" response.
8+
# Closes the WebSocket connection if it is open and returns an "unauthorized" reason.
99
def reject_unauthorized_connection
1010
logger.error "An unauthorized connection attempt was rejected"
1111
raise UnauthorizedError

0 commit comments

Comments
 (0)