mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Adding more mimetypes (js/css/srt).
This commit is contained in:
parent
574996c318
commit
2b64a2d0ce
1 changed files with 6 additions and 0 deletions
|
|
@ -114,6 +114,12 @@ def _mimetype_suffix_map(path: Path, mimetype: str):
|
|||
return 'application/sta'
|
||||
if suffix.endswith('.scad'):
|
||||
return 'application/x-openscad'
|
||||
if suffix.endswith('.js'):
|
||||
return 'application/javascript'
|
||||
if suffix.endswith('.css'):
|
||||
return 'text/css'
|
||||
if suffix.endswith('.srt'):
|
||||
return 'text/srt'
|
||||
if suffix.endswith('.yaml') or suffix.endswith('.yml'):
|
||||
return 'text/yaml'
|
||||
return mimetype
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue