From 489a33cbf68efb2365958e9ff1b2cf9c0d4c0968 Mon Sep 17 00:00:00 2001
From: Piotr Sarnacki <drogus@gmail.com>
Date: Mon, 28 Jan 2013 19:05:07 +0100
Subject: [PATCH] Try 307 redirect on /logs.txt

---
 lib/travis/api/app/endpoint/jobs.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/travis/api/app/endpoint/jobs.rb b/lib/travis/api/app/endpoint/jobs.rb
index b5a6d410..ed554324 100644
--- a/lib/travis/api/app/endpoint/jobs.rb
+++ b/lib/travis/api/app/endpoint/jobs.rb
@@ -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