未验证 提交 abda6fc3 编写于 作者: G Gannon McGibbon 提交者: GitHub

Merge pull request #34355 from esquith/patch-1

Update authorization.rb
...@@ -5,7 +5,7 @@ module Connection ...@@ -5,7 +5,7 @@ module Connection
module Authorization module Authorization
class UnauthorizedError < StandardError; end class UnauthorizedError < StandardError; end
# Closes the \WebSocket connection if it is open and returns a 404 "File not Found" response. # Closes the WebSocket connection if it is open and returns a 404 "File not Found" response.
def reject_unauthorized_connection def reject_unauthorized_connection
logger.error "An unauthorized connection attempt was rejected" logger.error "An unauthorized connection attempt was rejected"
raise UnauthorizedError raise UnauthorizedError
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册