summaryrefslogtreecommitdiffstats
path: root/core/views/expo.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2022-10-15 14:07:15 +0300
committerPhilip Sargent <philip.sargent@klebos.com>2022-10-15 14:07:15 +0300
commitda09bc7968f0c57029f6044484d511244eb00812 (patch)
tree324c945865aff0d8baa6d8ff565f3ac168ad9b86 /core/views/expo.py
parente0ac09d5ecc783902a341123fcdcf9e4112aec5d (diff)
downloadtroggle-da09bc7968f0c57029f6044484d511244eb00812.tar.gz
troggle-da09bc7968f0c57029f6044484d511244eb00812.tar.bz2
troggle-da09bc7968f0c57029f6044484d511244eb00812.zip
Render tunnel files as XML in webpage, not just text
Diffstat (limited to 'core/views/expo.py')
-rw-r--r--core/views/expo.py2
1 files changed, 1 insertions, 1 deletions
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"