ironic.api.middleware.json_ext module¶
-
class
ironic.api.middleware.json_ext.
JsonExtensionMiddleware
(app)[source]¶ Bases:
object
Simplified processing of .json extension.
Previously Ironic API used the “guess_content_type_from_ext” feature. It was never needed, as we never allowed non-JSON content types anyway. Now that it is removed, this middleware strips .json extension for backward compatibility.