appearently 'file' does not get the right mime-type if the file content is not unambiguous

This commit is contained in:
overflowerror 2017-11-19 01:03:56 +01:00
parent 333ba241cb
commit 8c9f357098

View file

@ -142,7 +142,8 @@ elif $(isExecutable ${server[real_path]}); then
type="exec"
else
status=200
responseHeaders['Content-Type']="$(file -b --mime-type ${server[real_path]})"
#responseHeaders['Content-Type']="$(file -b --mime-type ${server[real_path]})"
responseHeaders['Content-Type']="$(mimetype -b ${server[real_path]})"
content=$(cat ${server[real_path]})
type="static"