Try 307 redirect on /logs.txt
This commit is contained in:
parent
62b876d2e1
commit
489a33cbf6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user