@bounds = BoundingBox.from_bbox_params(params)
@bounds.check_boundaries
@bounds.check_size
- rescue StandardError => err
- report_error(err.message)
+ rescue StandardError => e
+ report_error(e.message)
return
end
response.headers["Content-Disposition"] = "attachment; filename=\"map.osm\""
# Render the result
- respond_to do |format|
- format.xml
- end
+ render :formats => [:xml]
end
end
end