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