]> git.openstreetmap.org Git - rails.git/commitdiff
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 a77b0f94a48f71939e16243282e27735bd0f9ac2..a511d67d35fb54cc558ff124a894abf03469540f 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