From 341fb268c2bdb62e1b4ce50da074b843215dc7ad Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sat, 23 May 2020 19:47:44 -0500 Subject: Read statusline until \r --- bollux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bollux b/bollux index 10b43d0..ab9e76b 100755 --- a/bollux +++ b/bollux @@ -209,7 +209,7 @@ request() { # request [-s SERVER] URL # cf. gemini://gemini.circumlunar.space/docs/spec-spec.txt handle() { # handle URL < RESPONSE URL="$1" - while read -r head; do + while read -d $'\r' -r head; do break # wait to read the first line done code="$(awk '{print $1}' <<<"$head")" -- cgit 1.4.1-21-gabe81