[前][次][番号順一覧][スレッド一覧]

ruby-changes:69736

From: Jeremy <ko1@a...>
Date: Tue, 16 Nov 2021 02:22:14 +0900 (JST)
Subject: [ruby-changes:69736] f1c3fc273d (master): [ruby/net-http] Fix tests after change to allow HEAD to send Accept-Encoding

https://git.ruby-lang.org/ruby.git/commit/?id=f1c3fc273d

From f1c3fc273d026a14b52fe996a66b6042eddb8a27 Mon Sep 17 00:00:00 2001
From: Jeremy Evans <code@j...>
Date: Mon, 15 Nov 2021 09:15:45 -0800
Subject: [ruby/net-http] Fix tests after change to allow HEAD to send
 Accept-Encoding

https://github.com/ruby/net-http/commit/ca7bb8c51c
---
 test/net/http/test_http_request.rb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/net/http/test_http_request.rb b/test/net/http/test_http_request.rb
index ebeda5f49ca..35dcbbc7043 100644
--- a/test/net/http/test_http_request.rb
+++ b/test/net/http/test_http_request.rb
@@ -46,8 +46,9 @@ class HTTPRequestTest < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/net/http/test_http_request.rb#L46
     assert_not_predicate req, :response_body_permitted?
 
     expected = {
-      'accept'     => %w[*/*],
-      'user-agent' => %w[Ruby],
+      'accept'          => %w[*/*],
+      "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'}
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]