mirror of
https://github.com/sigmasternchen/ShellSpider
synced 2025-03-16 08:29:02 +00:00
appearently 'file' does not get the right mime-type if the file content is not unambiguous
This commit is contained in:
parent
333ba241cb
commit
8c9f357098
1 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue