mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-16 11:27:19 +00:00
Render tunnel files as XML in webpage, not just text
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user