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

pull/5645/head
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
1 changed files with 3 additions and 1 deletions

View File

@ -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