X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/03ca0b2c697052c80b25f2111ab6ab718478a95a..de9996e9f0537661371b82e8bbe094bc1861fa7b:/app/controllers/api_controller.rb diff --git a/app/controllers/api_controller.rb b/app/controllers/api_controller.rb index c0534a6fa..64514a432 100644 --- a/app/controllers/api_controller.rb +++ b/app/controllers/api_controller.rb @@ -45,6 +45,10 @@ class ApiController < ApplicationController request.format = "xml" break end + + # In case the client requests some other format besides XML, JSON and */*, + # we deliberately don't set request.format. The framework will return an + # ActionController::UnknownFormat error to the client later on in this case. end end end