]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api_controller.rb
Create a custom build of OpenLayers to allow us to pull in extra
[rails.git] / app / controllers / api_controller.rb
index 285558bcfc490537e54a22c3c55d61b0c27e0a30..564f718993d2642433a7a44bbdfe7f4385f5f9a6 100644 (file)
@@ -1,6 +1,5 @@
 class ApiController < ApplicationController
 
-  session :off
   before_filter :check_api_readable, :except => [:capabilities]
   after_filter :compress_output
   around_filter :api_call_handle_error, :api_call_timeout
@@ -263,6 +262,9 @@ class ApiController < ApplicationController
     changesets = XML::Node.new 'changesets'
     changesets['maximum_elements'] = Changeset::MAX_ELEMENTS.to_s
     api << changesets
+    timeout = XML::Node.new 'timeout'
+    timeout['seconds'] = APP_CONFIG['api_timeout'].to_s
+    api << timeout
     
     doc.root << api