]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/geocoder_controller.rb
Remove all use of the :text option to render
[rails.git] / app / controllers / geocoder_controller.rb
index 57f86ec9fc7dd704d1b3e1d6347a1b6b28f8bbfd..a5f1810b7b05755d2262aa646a24df71239dfe69 100644 (file)
@@ -35,7 +35,7 @@ class GeocoderController < ApplicationController
     end
 
     if @sources.empty?
-      render :text => "", :status => :bad_request
+      head :bad_request
     else
       render :layout => map_layout
     end