Try 307 redirect on /logs.txt

This commit is contained in:
Piotr Sarnacki 2013-01-28 19:05:07 +01:00
parent 62b876d2e1
commit 489a33cbf6

View File

@ -14,7 +14,7 @@ class Travis::Api::App
get '/:job_id/log' do
resource = service(:find_artifact, params).run
if !resource || resource.archived?
redirect archive_url("/jobs/#{params[:job_id]}/log.txt")
redirect archive_url("/jobs/#{params[:job_id]}/log.txt"), 307
else
respond_with resource
end