ruby-changes:70739
From: Kazuhiro <ko1@a...>
Date: Wed, 5 Jan 2022 16:20:38 +0900 (JST)
Subject: [ruby-changes:70739] 5757696e07 (master): `res.response_body_permitted?` is not defined
https://git.ruby-lang.org/ruby.git/commit/?id=5757696e07 From 5757696e07398112c6275704f2cf873aa700f80b Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> Date: Wed, 5 Jan 2022 16:18:33 +0900 Subject: `res.response_body_permitted?` is not defined `response_body_permitted?` is a method of request. --- lib/net/http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/http.rb b/lib/net/http.rb index 552f818e5dc..b3aa21f08ad 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -132,7 +132,7 @@ module Net #:nodoc: https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L132 # puts res.class.name # => 'HTTPOK' # # # Body - # puts res.body if res.response_body_permitted? + # puts res.body # # === Following Redirection # -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/