Skip to content

Commit

Permalink
Remove references to old behavior with headers at
Browse files Browse the repository at this point in the history
ActionDispatch::Integration::ResquestHelpers.

The behavior has removed at 4a6f4b9 to
increase the compatibility with Rack::Test

Closes #7136

[ci skip]
  • Loading branch information
rafaelfranca committed Aug 7, 2012
1 parent c35853f commit 4147e0f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions actionpack/lib/action_dispatch/testing/integration.rb
Expand Up @@ -18,8 +18,8 @@ module RequestHelpers
# a Hash, or a String that is appropriately encoded
# (<tt>application/x-www-form-urlencoded</tt> or
# <tt>multipart/form-data</tt>).
# - +headers+: Additional HTTP headers to pass, as a Hash. The keys will
# automatically be upcased, with the prefix 'HTTP_' added if needed.
# - +headers+: Additional headers to pass, as a Hash. The headers will be
# merged into the Rack env hash.
#
# This method returns an Response object, which one can use to
# inspect the details of the response. Furthermore, if this method was
Expand Down Expand Up @@ -62,8 +62,7 @@ def head(path, parameters = nil, headers = nil)
#
# The request_method is +:get+, +:post+, +:put+, +:delete+ or +:head+; the
# parameters are +nil+, a hash, or a url-encoded or multipart string;
# the headers are a hash. Keys are automatically upcased and prefixed
# with 'HTTP_' if not already.
# the headers are a hash.
def xml_http_request(request_method, path, parameters = nil, headers = nil)
headers ||= {}
headers['HTTP_X_REQUESTED_WITH'] = 'XMLHttpRequest'
Expand Down

0 comments on commit 4147e0f

Please sign in to comment.