lib/passworks/request.rb in passworks-0.0.4 vs lib/passworks/request.rb in passworks-2.0.0

- old
+ new

@@ -22,11 +22,11 @@ connection.response :logger connection.response :json, :content_type => /\bjson$/ connection.use Passworks::Faraday::HttpExceptionMiddleware connection.adapter ::Faraday.default_adapter end - @agent.headers[:user_agent] = @user_agent - # always return the {@agent} + @agent.headers[:user_agent] = @user_agent + @agent.headers['Content-Type'] = 'application/json' @agent end def get(url, options={}) request(:get, url, options) \ No newline at end of file