From 87527c0bce65def5f4d0ac25a267acf550a56862 Mon Sep 17 00:00:00 2001 From: Holger Bruch Date: Tue, 9 Jul 2024 15:04:43 +0200 Subject: [PATCH] add application/xml as encoding format --- dpc/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpc/tasks.py b/dpc/tasks.py index 5c92d4b..b822e9f 100644 --- a/dpc/tasks.py +++ b/dpc/tasks.py @@ -67,7 +67,7 @@ def _format_for(encodingFormat): # FIXME this is temporary and should be replaced, e.g. by using datapackage's format metainfo if encodingFormat == "text/csv": return "csv" - elif encodingFormat == "text/xml": + elif encodingFormat == "text/xml" or encodingFormat == "application/xml": return "xml" elif encodingFormat == "application/json": return "json"