summaryrefslogtreecommitdiff
path: root/httpconnectd.sh.in
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-02-06 16:09:48 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-02-06 16:09:48 -0500
commit6532dc1b5355b88070a60ed1e28d2efc675b148a (patch)
treef13bd141d218da67dff5095eba346ccd1d33f2d3 /httpconnectd.sh.in
parentb2e39e7146608d5b600127de9a3b2448f13f6218 (diff)
proxytunnel doesn't like 204 (which is non-conferment with RFC 7231, but w/e).
Diffstat (limited to 'httpconnectd.sh.in')
-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