Commit 7e541079 authored by Łukasz Magiera's avatar Łukasz Magiera Committed by Steven Allen

Update test/sharness/t0184-http-proxy-over-p2p.sh

License: MIT
Signed-off-by: default avatarIan Preston <ianopolous@protonmail.com>
Co-Authored-By: default avatarianopolous <ianopolous@protonmail.com>
parent 9956630e
......@@ -32,7 +32,9 @@ function serve_http_once() {
local status_code=${2:-"200 OK"}
local length=$((1 + ${#body}))
REMOTE_SERVER_LOG="server.log"
rm $REMOTE_SERVER_LOG
echo -e "HTTP/1.1 $status_code\nContent-length: $length\n\n$body" | nc -l $WEB_SERVE_PORT 2>&1 > $REMOTE_SERVER_LOG &
test_wait_for_file 30 100ms $REMOTE_SERVER_LOG
REMOTE_SERVER_PID=$!
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment