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:
parent
8adaf4efd4
commit
51410fdb6d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user