summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--httpconnectd.sh.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/httpconnectd.sh.in b/httpconnectd.sh.in
index 747fcea..36303bb 100644
--- a/httpconnectd.sh.in
+++ b/httpconnectd.sh.in
@@ -10,9 +10,9 @@
server="${0##*/}"
-NoContent() {
+OK() {
printf '%s\r\n' \
- 'HTTP/1.1 204 No Content' \
+ 'HTTP/1.1 200 OK' \
"Server: $server" \
"Date: $(date -R)" \
''
@@ -92,7 +92,7 @@ worker() {
Forbidden
return 0
fi
- NoContent
+ OK
exec socat STDIO TCP-CONNECT:"$dest"
;;
esac