go_winter_work_2025/bash/train_bash/rest.sh
Vitaliy Turov 50f600e168
Some checks failed
Deploy to Server (Docker) / deploy (push) Failing after 9s
feature/train_bash (#7)
Reviewed-on: https://git.gocommunity.ru/walleri1/go_winter_work_2025/pulls/7
Co-authored-by: Vitaliy Turov <walleri1@yandex.ru>
Co-committed-by: Vitaliy Turov <walleri1@yandex.ru>
2025-02-15 11:59:59 +03:00

8 lines
140 B
Bash
Executable File

#!/bin/bash
while true; do {
echo -ne "HTTP/1.0 200 OK\r\n
Content-Length: \$(wc -c <index.htm)\r\n\r\n";
} | nc -l -p 8080 ;
done