lib/travis/client/session.rb in travis-1.6.8.travis.454.6 vs lib/travis/client/session.rb in travis-1.6.8.travis.455.6
- old
+ new
@@ -33,10 +33,10 @@
options = { :uri => options } unless options.respond_to? :each_pair
options.each_pair { |key, value| public_send("#{key}=", value) }
raise ArgumentError, "neither :uri nor :connection specified" unless connection
- headers['Accept'] = 'application/json; version=2'
+ headers['Accept'] = 'application/vnd.travis-ci.2+json'
set_user_agent
end
def uri
connection.url_prefix.to_s if connection