diff --git a/testproject.sh b/testproject.sh index 45e8b8f8abfc997452dd43a8b512c96bbe5c4761..b00ff9a7e576025d30ab7e3432198be3589f66eb 100755 --- a/testproject.sh +++ b/testproject.sh @@ -19,7 +19,7 @@ $psql -c 'create table if not exists testtable(id serial primary key);' || exit while true; do cnt=$(eval $psqlCount |head -3 |tail -n 1 |tr -d '[:space:]') - req=$(echo -e "HTTP/1.1 200 OK\n\n$cnt" | nc -c -l -p $PORT 0.0.0.0) + req=$(echo $cnt |nc -l -p $PORT -q1) if [[ $req =~ '/add' ]]; then eval $psqlAdd fi