lib/openfire/client.rb in openfire-ruby-0.1.0 vs lib/openfire/client.rb in openfire-ruby-0.1.1

- old
+ new

@@ -14,11 +14,11 @@ 'Content-Type' => 'application/json', 'Accept' => 'application/json' } HER_CLIENT.setup url: url, headers: headers do |c| c.request :json - c.response :openfire_xml, content_type: /\bxml$/ - c.response :openfire_json, content_type: /\bjson$/ + c.response :openfire_xml, content_type: /^application\/xml$/ + c.response :openfire_json, content_type: /(^application\/json$)|(^$)/ c.use Faraday::Adapter::NetHttp end end def groups