From 51410fdb6dcf78dade0546f260265f9a601afbe2 Mon Sep 17 00:00:00 2001 From: Tom Leen Date: Fri, 3 Jul 2020 11:17:25 -0400 Subject: [PATCH] vweb: add .txt and .md mime types (#5641) --- vlib/vweb/vweb.v | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vlib/vweb/vweb.v b/vlib/vweb/vweb.v index 8f708b13f5..8050243f35 100644 --- a/vlib/vweb/vweb.v +++ b/vlib/vweb/vweb.v @@ -26,10 +26,12 @@ pub const ( '.html': 'text/html; charset=utf-8', '.jpg': 'image/jpeg', '.js': 'application/javascript', - '.wasm': 'application/wasm', + '.md': 'text/markdown; charset=utf-8', '.pdf': 'application/pdf', '.png': 'image/png', '.svg': 'image/svg+xml', + '.txt': 'text/plain; charset=utf-8', + '.wasm': 'application/wasm', '.xml': 'text/xml; charset=utf-8' } max_http_post_size = 1024 * 1024