diff --git a/connexion/app.py b/connexion/app.py index 7bc304390..1eb1293a5 100644 --- a/connexion/app.py +++ b/connexion/app.py @@ -165,8 +165,7 @@ def _resolver_error_handler(self, *args, **kwargs): kwargs['operation'] = { 'operationId': 'connexion.handlers.ResolverErrorHandler', } - kwargs['app_produces'] = ['application/json'] - kwargs['app_consumes'] = ['application/json'] + kwargs.setdefault('app_consumes', ['application/json']) return ResolverErrorHandler(self.resolver_error, *args, **kwargs) def add_error_handler(self, error_code, function):