diff options
-rw-r--r-- | httpconnectd.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/httpconnectd.sh b/httpconnectd.sh index ff22d13..6240e02 100644 --- a/httpconnectd.sh +++ b/httpconnectd.sh @@ -24,6 +24,11 @@ worker() { if [[ "$method" != CONNECT ]]; then MethodNotAllowed fi + while read -r line; do + if [[ "$line" == $'\r' ]]; then + break; + fi + done exec socat STDIO TCP-CONNECT:"$dest" } |