我已将应用程序从2.1升级到2.4,我收到以下错误消息:
NoMethodError: undefined method `<<' for {:read_timeout=>60, :continue_timeout=>nil, :debug_output=>nil}:Hash
Did you mean? <
from /Users/me/.rubies/ruby-2.4.3/lib/ruby/2.4.0/net/protocol.rb:219:in `writing'
似乎net / http库中的某些内容已经发生了变化。任何人都知道改变了什么和/或如何解决它?
def writing
@written_bytes = 0
@debug_output << '<- ' if @debug_output
yield
@debug_output << "\n" if @debug_output
bytes = @written_bytes
@written_bytes = nil
bytes
end
在第一个@debug_output
行引发了异常。