X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/2bfb976b8e42f6ab0e87c053e91b2bc88538dba6..fb953006a1a8fe2949f376e167dda963dfd784bd:/app/controllers/api/map_controller.rb diff --git a/app/controllers/api/map_controller.rb b/app/controllers/api/map_controller.rb index e8a27042d..c783759bc 100644 --- a/app/controllers/api/map_controller.rb +++ b/app/controllers/api/map_controller.rb @@ -90,9 +90,7 @@ module Api response.headers["Content-Disposition"] = "attachment; filename=\"map.osm\"" # Render the result - respond_to do |format| - format.xml - end + render formats: [:xml] end end end