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:
parent
c97688bc6f
commit
fe67eecf28
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue