1
0
Fork 0
mirror of https://gitlab.com/niansa/simpsh-httpd.git synced 2025-03-06 20:53:36 +01:00

Update sendfile.sh

This commit is contained in:
niansa 2018-07-15 07:24:39 +00:00
parent 2d432acdfa
commit 9180357bd6

View file

@ -6,7 +6,7 @@ if [[ "$FILE" == *.php ]]; then
. ./httpheaders.sh
php "$FILE" >> $OUTFILE
elif [ -f "${FILE}" ]; then
CONTENTTYPE="$DEFAULTCONTENTTYPE"
CONTENTTYPE=$(file -b -i "$file")
. ./httpheaders.sh
cat "${FILE}" >> ${OUTFILE}
else