diff --git a/src/wms_response_filters.py b/src/wms_response_filters.py index 4d85065..e196b8a 100644 --- a/src/wms_response_filters.py +++ b/src/wms_response_filters.py @@ -327,6 +327,18 @@ def wms_getfeatureinfo(response, params, permissions): feature_info = wms_getfeatureinfo_gml( feature_info, permissions ) + else: + service_exception = ( + '\n' + ' Unsupported info_format\n' + '' + ) + return Response( + service_exception, + content_type='text/xml; charset=utf-8', + status=200 + ) + # NOTE: application/vnd.ogc.gml/3.1.1 is broken in QGIS server