mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/net-http] Fix tests after change to allow HEAD to send Accept-Encoding
ca7bb8c51c
This commit is contained in:
parent
ca0a5edb5f
commit
f1c3fc273d
1 changed files with 3 additions and 2 deletions
|
@ -46,8 +46,9 @@ class HTTPRequestTest < Test::Unit::TestCase
|
||||||
assert_not_predicate req, :response_body_permitted?
|
assert_not_predicate req, :response_body_permitted?
|
||||||
|
|
||||||
expected = {
|
expected = {
|
||||||
'accept' => %w[*/*],
|
'accept' => %w[*/*],
|
||||||
'user-agent' => %w[Ruby],
|
"accept-encoding" => %w[gzip;q=1.0,deflate;q=0.6,identity;q=0.3],
|
||||||
|
'user-agent' => %w[Ruby],
|
||||||
}
|
}
|
||||||
|
|
||||||
assert_equal expected, req.to_hash.tap{_1.delete 'accept-encoding'}
|
assert_equal expected, req.to_hash.tap{_1.delete 'accept-encoding'}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue