lib/flexirest/request.rb in flexirest-1.7.6 vs lib/flexirest/request.rb in flexirest-1.7.7
- old
+ new
@@ -397,10 +397,10 @@
headers["Accept"] ||= "application/vnd.api+json"
JsonAPIProxy::Headers.save(headers)
elsif http_method == :get || (http_method == :delete && !@method[:options][:send_delete_body])
if request_body_type == :form_encoded
- headers["Content-Type"] ||= "application/x-www-form-urlencoded"
+ headers["Content-Type"] ||= "application/x-www-form-urlencoded; charset=utf-8"
elsif request_body_type == :json
headers["Content-Type"] ||= "application/json; charset=utf-8"
end
@body = ""
elsif request_body_type == :form_encoded