summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-01-22 16:10:43 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-01-22 16:10:43 -0500
commitfbe5ed0751a4fab5e40551b2f39323882010dbad (patch)
tree2cdec1e9cbf1c98049af4d8e0962c1db9614fbda
parentc80e4036fbac53039b607c4bb8a5489d016a009f (diff)
I'm a dingus
-rw-r--r--httpconnectd.sh5
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"
}