Don't send "408 Request timeout" responses from the data browser as it
authorTom Hughes <tom@compton.nu>
Mon, 12 Apr 2010 13:21:03 +0000 (13:21 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 19 Apr 2010 13:28:02 +0000 (14:28 +0100)
seems to make some browsers automatically retry.

app/controllers/browse_controller.rb

index a77b0f9..a511d67 100644 (file)
@@ -86,11 +86,11 @@ private
     end
   rescue ActionView::TemplateError => ex
     if ex.original_exception.is_a?(Timeout::Error)
-      render :action => "timeout", :status => :request_timeout
+      render :action => "timeout"
     else
       raise
     end
   rescue Timeout::Error
-    render :action => "timeout", :status => :request_timeout
+    render :action => "timeout"
   end
 end