lib/httpx/transcoder/form.rb in httpx-0.9.0 vs lib/httpx/transcoder/form.rb in httpx-0.10.0
- old
+ new
@@ -12,21 +12,15 @@
def_delegator :@raw, :to_s
def_delegator :@raw, :bytesize
- def_delegator :@raw, :force_encoding
-
def initialize(form)
@raw = URI.encode_www_form(form)
end
def content_type
"application/x-www-form-urlencoded"
- end
-
- def to_str
- @raw.to_s
end
end
def encode(form)
Encoder.new(form)