提交 e2e05360 编写于 作者: R Ryuta Kamizono

Avoid unused capture in `non_xhr_javascript_response?`

上级 b74edd37
......@@ -275,7 +275,7 @@ def marked_for_same_origin_verification? # :doc:
# Check for cross-origin JavaScript responses.
def non_xhr_javascript_response? # :doc:
content_type =~ %r(\A(text|application)/javascript) && !request.xhr?
content_type =~ %r(\A(?:text|application)/javascript) && !request.xhr?
end
AUTHENTICITY_TOKEN_LENGTH = 32
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册