mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
quick fix for test_initialize_HEAD
52ab9bbee9
makes a failure.
```
1) Failure:
HTTPRequestTest#test_initialize_HEAD [/tmp/ruby/v3/src/trunk/test/net/http/test_http_request.rb:53]:
<{"accept"=>["*/*"], "user-agent"=>["Ruby"]}> expected but was
<{"accept-encoding"=>["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"],
"accept"=>["*/*"],
"user-agent"=>["Ruby"]}>.
```
I'm not sure it is correct, so please review later.
This commit is contained in:
parent
cd51bf61a2
commit
b5531adf41
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ class HTTPRequestTest < Test::Unit::TestCase
|
||||||
'user-agent' => %w[Ruby],
|
'user-agent' => %w[Ruby],
|
||||||
}
|
}
|
||||||
|
|
||||||
assert_equal expected, req.to_hash
|
assert_equal expected, req.to_hash.tap{_1.delete 'accept-encoding'}
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_initialize_accept_encoding
|
def test_initialize_accept_encoding
|
||||||
|
|
Loading…
Add table
Reference in a new issue