X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/85b3f7ffbc3d32a0269ef0b825e91eed1f17f4e7..72b05157ae4d59177cd2fb667c42328b203374f1:/app/controllers/api_controller.rb diff --git a/app/controllers/api_controller.rb b/app/controllers/api_controller.rb index ca4cbcbd7..855e05888 100644 --- a/app/controllers/api_controller.rb +++ b/app/controllers/api_controller.rb @@ -7,9 +7,6 @@ class ApiController < ApplicationController # Help methods for checking boundary sanity and area size include MapBoundary - #COUNT is the number of map requests to allow before exiting and starting a new process - @@count = COUNT - # The maximum area you're allowed to request, in square degrees MAX_REQUEST_AREA = APP_CONFIG['max_request_area'] @@ -73,13 +70,6 @@ class ApiController < ApplicationController trkseg << point.to_xml_node() end - #exit when we have too many requests - if @@count > MAX_COUNT - render :text => doc.to_s, :content_type => "text/xml" - @@count = COUNT - exit! - end - response.headers["Content-Disposition"] = "attachment; filename=\"map.osm\"" render :text => doc.to_s, :content_type => "text/xml" @@ -206,13 +196,6 @@ class ApiController < ApplicationController response.headers["Content-Disposition"] = "attachment; filename=\"map.osm\"" render :text => doc.to_s, :content_type => "text/xml" - - #exit when we have too many requests - if @@count > MAX_COUNT - @@count = COUNT - - exit! - end end # Get a list of the tiles that have changed within a specified time