Skip to content

Commit ca7bb8c

Browse files
committed
Fix tests after change to allow HEAD to send Accept-Encoding
1 parent 3ffb4fe commit ca7bb8c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/net/http/test_http_request.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ def test_initialize_HEAD
4646
assert_not_predicate req, :response_body_permitted?
4747

4848
expected = {
49-
'accept' => %w[*/*],
50-
'user-agent' => %w[Ruby],
49+
'accept' => %w[*/*],
50+
"accept-encoding" => %w[gzip;q=1.0,deflate;q=0.6,identity;q=0.3],
51+
'user-agent' => %w[Ruby],
5152
}
5253

5354
assert_equal expected, req.to_hash

0 commit comments

Comments
 (0)