mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Avoid unused capture in non_xhr_javascript_response?
This commit is contained in:
parent
b74edd37c5
commit
e2e053608e
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ module ActionController #:nodoc:
|
|||
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue