From fbe5ed0751a4fab5e40551b2f39323882010dbad Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 22 Jan 2016 16:10:43 -0500 Subject: I'm a dingus --- httpconnectd.sh | 5 +++++ 1 file changed, 5 insertions(+) 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" } -- cgit v1.2.3-2-g168b