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

Update readrequest.sh

This commit is contained in:
niansa 2017-03-09 10:30:00 +01:00 committed by GitHub
parent 5fe4f3ee81
commit 39b3e042d0

View file

@ -1,14 +1,9 @@
#! /bin/bash
# Notwendige Variablen definieren
header=' '
# Falls im nächsten Bereich keine Datein ausgewertet werden, bleiben folgende Variablen gesetzt
# Standard-URL
export URL='/'
# Lese anfrage...
read header
# Verarbeite den request
URL="${header#GET }"
URL="${URL% HTTP/*}"
export FILE="$FILES$URL"