mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-12 11:48:07 +08:00
Update test/sharness/t0184-http-proxy-over-p2p.sh
License: MIT Signed-off-by: Ian Preston <ianopolous@protonmail.com> Co-Authored-By: ianopolous <ianopolous@protonmail.com>
This commit is contained in:
parent
9956630e0c
commit
7e541079c7
@ -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=$!
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user