lib/http/client.rb in http-5.1.1 vs lib/http/client.rb in http-5.2.0

- old
+ new

@@ -182,10 +182,10 @@ form = make_form_data(opts.form) headers[Headers::CONTENT_TYPE] ||= form.content_type form when opts.json body = MimeType[:json].encode opts.json - headers[Headers::CONTENT_TYPE] ||= "application/json; charset=#{body.encoding.name}" + headers[Headers::CONTENT_TYPE] ||= "application/json; charset=#{body.encoding.name.downcase}" body end end def make_form_data(form)