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

Added 304 error

This commit is contained in:
niansa 2017-08-25 15:02:32 +02:00 committed by GitHub
parent c97688bc6f
commit fe67eecf28

View file

@ -35,3 +35,10 @@ if [ ! -e "$FILE" ]; then
CONTENTTYPE='text/plain'
FILE="$ERROR404"
fi
# Antworte 403 Forbidden wenn Datei nicht lesbar ist
if [ ! -e "$FILE" ]; then
STATUS='HTTP/1.0 403 Forbidden'
CONTENTTYPE='text/plain'
FILE="$ERROR403"
fi