From 80a6a611c7bb4d7bc9fcf6a467910815fb51301f Mon Sep 17 00:00:00 2001 From: Sylvain Brunato Date: Fri, 13 Dec 2024 10:14:19 +0100 Subject: [PATCH] feat: add grib2 mimetype --- eodag/utils/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/eodag/utils/__init__.py b/eodag/utils/__init__.py index e68aac76f..abc47e9c1 100644 --- a/eodag/utils/__init__.py +++ b/eodag/utils/__init__.py @@ -1423,6 +1423,7 @@ def guess_extension(type: str) -> Optional[str]: """guess extension from mime type""" mimetypes.add_type("text/xml", ".xsd") mimetypes.add_type("application/x-grib", ".grib") + mimetypes.add_type("application/x-grib2", ".grib2") return mimetypes.guess_extension(type, strict=False)