Bug in active_resource 2.3.4 validation

Hello,

this is part of lib/active_resource/validations.rb

    def save_with_validation
      save_without_validation
      true
    rescue ResourceInvalid => error
      case error.response['Content-Type']
      when 'application/xml'
        errors.from_xml(error.response.body)
      when 'application/json'
        errors.from_json(error.response.body)
      end
      false
    end

But when Content-Type is "application/json; charset=utf-8" no one part
of case statement executed.

This is a known issue:

https://rails.lighthouseapp.com/projects/8994/tickets/3222-activeresource-is-not-extracting-errors-from-an-xml-response-if-the-content-type-is-applicationxml-charsetutf-8

--Valentin