1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vweb: add .txt and .md mime types (#5641)

This commit is contained in:
Tom Leen 2020-07-03 11:17:25 -04:00 committed by GitHub
parent 8adaf4efd4
commit 51410fdb6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,10 +26,12 @@ pub const (
'.html': 'text/html; charset=utf-8', '.html': 'text/html; charset=utf-8',
'.jpg': 'image/jpeg', '.jpg': 'image/jpeg',
'.js': 'application/javascript', '.js': 'application/javascript',
'.wasm': 'application/wasm', '.md': 'text/markdown; charset=utf-8',
'.pdf': 'application/pdf', '.pdf': 'application/pdf',
'.png': 'image/png', '.png': 'image/png',
'.svg': 'image/svg+xml', '.svg': 'image/svg+xml',
'.txt': 'text/plain; charset=utf-8',
'.wasm': 'application/wasm',
'.xml': 'text/xml; charset=utf-8' '.xml': 'text/xml; charset=utf-8'
} }
max_http_post_size = 1024 * 1024 max_http_post_size = 1024 * 1024