diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-02-06 16:09:48 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-02-06 16:09:48 -0500 |
commit | 6532dc1b5355b88070a60ed1e28d2efc675b148a (patch) | |
tree | f13bd141d218da67dff5095eba346ccd1d33f2d3 | |
parent | b2e39e7146608d5b600127de9a3b2448f13f6218 (diff) |
proxytunnel doesn't like 204 (which is non-conferment with RFC 7231, but w/e).
-rw-r--r-- | httpconnectd.sh.in | 6 |
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 |