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

Update urlcheck.sh

This commit is contained in:
niansa 2017-08-25 16:08:45 +02:00 committed by GitHub
parent cbc55d6959
commit 608d35f56f

View file

@ -32,13 +32,13 @@ fi
# Antworte 404 Not Found wenn Datei nicht existiert
if [ ! -e "$FILE" ]; then
STATUS='HTTP/1.0 404 Not Found'
CONTENTTYPE='text/plain'
CONTENTTYPE='text/html'
FILE="$ERROR404"
fi
# Antworte 403 Forbidden wenn Datei nicht lesbar ist
if [ ! -r "$FILE" ]; then
STATUS='HTTP/1.0 403 Forbidden'
CONTENTTYPE='text/plain'
CONTENTTYPE='text/html'
FILE="$ERROR403"
fi