From 07fbb388da509b20f601ae5d4e64d5fb1fbe7349 Mon Sep 17 00:00:00 2001 From: g1n Date: Thu, 8 Jul 2021 09:09:18 +0000 Subject: [PATCH] Delete status from output --- laconia | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laconia b/laconia index 7ca8018..f7cc326 100755 --- a/laconia +++ b/laconia @@ -17,7 +17,7 @@ request(){ status=$(echo $page | awk 'NR == 1 {print $1}') meta=$(echo $page | awk 'NR == 1 {print $2}') if [[ $status == 2 ]]; then - printf "$host /$path $( $post | wc -c )\r\n$post" | nc $host $port + printf "$host /$path $( $post | wc -c )\r\n$post" | nc $host $port | awk 'NR > 1 {print}' elif [[ $status == 3 ]]; then path=$meta printf "$host $path 0\r\n" | nc $host 300