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:
parent
5fe4f3ee81
commit
39b3e042d0
1 changed files with 2 additions and 7 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue