lib/httpx/transcoder/form.rb in httpx-1.3.1 vs lib/httpx/transcoder/form.rb in httpx-1.3.2
- old
+ new
@@ -18,9 +18,11 @@
def_delegator :@raw, :to_str
def_delegator :@raw, :bytesize
+ def_delegator :@raw, :==
+
def initialize(form)
@raw = form.each_with_object("".b) do |(key, val), buf|
HTTPX::Transcoder.normalize_keys(key, val) do |k, v|
buf << "&" unless buf.empty?
buf << URI.encode_www_form_component(k)