From ae4ece24507c62494e63608c976863b50889b138 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 12 Apr 2010 13:21:03 +0000 Subject: [PATCH] Don't send "408 Request timeout" responses from the data browser as it seems to make some browsers automatically retry. --- app/controllers/browse_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/browse_controller.rb b/app/controllers/browse_controller.rb index a77b0f94a..a511d67d3 100644 --- a/app/controllers/browse_controller.rb +++ b/app/controllers/browse_controller.rb @@ -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 -- 2.43.2