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
|
get '/:job_id/log' do
|
||||||
resource = service(:find_artifact, params).run
|
resource = service(:find_artifact, params).run
|
||||||
if !resource || resource.archived?
|
if !resource || resource.archived?
|
||||||
redirect archive_url("/jobs/#{params[:job_id]}/log.txt")
|
redirect archive_url("/jobs/#{params[:job_id]}/log.txt"), 307
|
||||||
else
|
else
|
||||||
respond_with resource
|
respond_with resource
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user