diff options
-rwxr-xr-x | bollux | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bollux b/bollux index 10b43d0..ab9e76b 100755 --- a/bollux +++ b/bollux | |||
@@ -209,7 +209,7 @@ request() { # request [-s SERVER] URL | |||
209 | # cf. gemini://gemini.circumlunar.space/docs/spec-spec.txt | 209 | # cf. gemini://gemini.circumlunar.space/docs/spec-spec.txt |
210 | handle() { # handle URL < RESPONSE | 210 | handle() { # handle URL < RESPONSE |
211 | URL="$1" | 211 | URL="$1" |
212 | while read -r head; do | 212 | while read -d $'\r' -r head; do |
213 | break # wait to read the first line | 213 | break # wait to read the first line |
214 | done | 214 | done |
215 | code="$(awk '{print $1}' <<<"$head")" | 215 | code="$(awk '{print $1}' <<<"$head")" |