]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/cors.rb
Merge remote-tracking branch 'upstream/pull/5391'
[rails.git] / config / initializers / cors.rb
index 7421bd3346868dc96b580ad14e6fe1dee61b701e..e7b813b73f788fb7bf4cac947007c2ff0154340d 100644 (file)
@@ -6,7 +6,7 @@
 module OpenStreetMap
   class Cors < Rack::Cors
     def call(env)
 module OpenStreetMap
   class Cors < Rack::Cors
     def call(env)
-      status, headers, body = super env
+      status, headers, body = super
       headers["Cache-Control"] = "no-cache" if headers["Access-Control-Allow-Origin"]
       [status, headers, body]
     end
       headers["Cache-Control"] = "no-cache" if headers["Access-Control-Allow-Origin"]
       [status, headers, body]
     end