mirror of
https://github.com/github/rails.git
synced 2026-01-29 16:28:09 -05:00
r4886@ks: jeremy | 2006-07-31 00:01:55 -0700
comma git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4636 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -168,7 +168,7 @@ module ActionController
|
||||
# prefix 'HTTP_' added if needed.
|
||||
def xml_http_request(path, parameters=nil, headers=nil)
|
||||
headers = (headers || {}).merge(
|
||||
"X-Requested-With" => "XMLHttpRequest"
|
||||
"X-Requested-With" => "XMLHttpRequest",
|
||||
"Accept" => "text/javascript, text/html, application/xml, text/xml, */*"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user