aboutsummaryrefslogtreecommitdiff
path: root/preprocessor
diff options
context:
space:
mode:
Diffstat (limited to 'preprocessor')
-rwxr-xr-xpreprocessor/main.sh35
1 files changed, 16 insertions, 19 deletions
diff --git a/preprocessor/main.sh b/preprocessor/main.sh
index 0fdfbc5..5aff989 100755
--- a/preprocessor/main.sh
+++ b/preprocessor/main.sh
@@ -1,20 +1,17 @@
#!/bin/bash
-while read stdin
-do
- data=$(cat index.bhtml | envsubst)
- echo "HTTP/1.1 200 OK"
- echo "Server: Bashweb"
- echo "Date: $(date)"
- echo "Content-Type: text/html; charset=utf-8"
- echo "Content-Length: ${#data}"
- echo "Connection: keep-alive"
- echo "X-Frame-Options: SAMEORIGIN"
- echo "X-XSS-Protection: 1; mode=block"
- echo "Cache-Control: private, no-cache, no-store, must-revalidate"
- echo "X-Content-Type-Options: nosniff"
- echo "Pragma: no-cache"
- echo "Expires: Sat, 01 Jan 2000 00:00:00 GMT"
- echo "Referrer-Policy: no-referrer-when-downgrade"
- echo ""
- echo $data
-done
+data=$(cat index.bhtml | envsubst)
+echo "HTTP/1.1 200 OK"
+echo "Server: Bashweb"
+echo "Date: $(date)"
+echo "Content-Type: text/html; charset=utf-8"
+echo "Content-Length: ${#data}"
+echo "Connection: keep-alive"
+echo "X-Frame-Options: SAMEORIGIN"
+echo "X-XSS-Protection: 1; mode=block"
+echo "Cache-Control: private, no-cache, no-store, must-revalidate"
+echo "X-Content-Type-Options: nosniff"
+echo "Pragma: no-cache"
+echo "Expires: Sat, 01 Jan 2000 00:00:00 GMT"
+echo "Referrer-Policy: no-referrer-when-downgrade"
+echo ""
+echo $data