Currently we have some license issues. We are working on it.

Commit 437a7e03 authored by zauberstuhl's avatar zauberstuhl
Browse files

Send status code via netcat

parent a356c7c2
......@@ -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 $cnt |nc -l -p $PORT -q1)
req=$(echo -e "HTTP/1.1 200 OK\n\n$cnt" |nc -l -p $PORT -q1)
if [[ $req =~ '/add' ]]; then
eval $psqlAdd
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