lib/travis/client/artifact.rb in travis-1.7.6.travis.675.5 vs lib/travis/client/artifact.rb in travis-1.7.6.travis.676.5

- old
+ new

@@ -4,10 +4,11 @@ module Travis module Client class Artifact < Entity CHUNKED = "application/json; chunked=true; version=2, application/json; version=2" + TEXT = "#{CHUNKED}, text/plain" # @!parse attr_reader :job_id, :type, :body attributes :job_id, :type, :body # @!parse attr_reader :job @@ -36,10 +37,10 @@ def current_body attributes['current_body'] ||= begin body = load_attribute('body') if body.to_s.empty? - log = session.get_raw("jobs/#{job_id}/log") + log = session.get_raw("jobs/#{job_id}/log", nil, "Accept" => TEXT) body = String === log ? log : log['log']['body'] end body end end