Installation

This commit is contained in:
Kroese
2023-03-27 19:23:50 +02:00
parent 059286eae5
commit 746dc53947
2 changed files with 104 additions and 1 deletions

10
server.sh Normal file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -eu
RESPONSE="HTTP/1.1 200 OK\r\nConnection: close\r\n\r\n${2:-"OK"}\r\n"
while { echo -en "$RESPONSE"; } | nc -lN "${1:-8080}"; do
echo "================================================"
done