]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/old_controller.rb
Make sure all pages using the map layout call require_oauth
[rails.git] / app / controllers / old_controller.rb
index c23df70dfad935a65d2ea72362f3618ad07fd903..a542a9bde4843fc2dccb6e9db36508166ce62c40 100644 (file)
@@ -39,7 +39,7 @@ class OldController < ApplicationController
   
   def version
     if @old_element.redacted? and not show_redactions?
-      render :nothing => true, :status => :forbidden
+      render :text => "", :status => :forbidden
 
     else
       response.last_modified = @old_element.timestamp
@@ -66,7 +66,7 @@ class OldController < ApplicationController
     end
     
     # just return an empty 200 OK for success
-    render :nothing => true
+    render :text => ""
   end
 
   private