From da09bc7968f0c57029f6044484d511244eb00812 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 15 Oct 2022 14:07:15 +0300 Subject: Render tunnel files as XML in webpage, not just text --- core/views/expo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/views/expo.py') diff --git a/core/views/expo.py b/core/views/expo.py index 4dca1a1..021415f 100644 --- a/core/views/expo.py +++ b/core/views/expo.py @@ -279,7 +279,7 @@ def getmimetype(path): if path.lower().endswith(".jpeg"): return "image/jpeg" if path.lower().endswith(".jpg"): return "image/jpeg" if path.lower().endswith("svg"): return "image/svg+xml" - if path.lower().endswith("xml"): return "application/xml" # we use "text/xhtml" for tunnel files + if path.lower().endswith("xml"): return "application/xml" # we use "text/xml" for tunnel files if path.lower().endswith(".pdf"): return "application/pdf" if path.lower().endswith(".ps"): return "application/postscript" if path.lower().endswith(".svx"): return "application/x-survex-svx" -- cgit v1.2.3