Actions
Bug #10619
closedURI::HTTP#query= behavior changed for 2396 uris
Description
Hi,
r48244 changed the behavior of the query method on uri objects generated by the 2396 parser. Here is a test to demonstrate the change:
require 'test/unit'
require 'uri'
module URI
class TestRFC2396 < Test::Unit::TestCase
def test_query_on_parse
parser = URI::RFC2396_Parser.new
uri = parser.parse "http://www.example.com/parse?location[]=1"
assert_equal 'location[]=1', uri.query
end
end
end
This test passed before r48244. I've attached a patch that fixes it and maintains the fix for Bug #10402
Files
Actions
Like0
Like0Like0Like0Like0Like0