Changeset 4633
- Timestamp:
- 07/31/06 06:18:20 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/lib/action_controller/integration.rb
r4624 r4633 168 168 # prefix 'HTTP_' added if needed. 169 169 def xml_http_request(path, parameters=nil, headers=nil) 170 headers = (headers || {}).merge("X-Requested-With" => "XMLHttpRequest") 170 headers = (headers || {}).merge( 171 "X-Requested-With" => "XMLHttpRequest" 172 "Accept" => "text/javascript, text/html, application/xml, text/xml, */*" 173 ) 174 171 175 post(path, parameters, headers) 172 176 end