https://reisub.nsupdate.info/git
/
bollux.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
677b0b2
)
Read statusline until \r
author
Case Duckworth
<acdw@acdw.net>
Sun, 24 May 2020 00:47:44 +0000
(19:47 -0500)
committer
Case Duckworth
<acdw@acdw.net>
Sun, 24 May 2020 00:47:44 +0000
(19:47 -0500)
bollux
patch
|
blob
|
history
diff --git
a/bollux
b/bollux
index
10b43d0
..
ab9e76b
100755
(executable)
--- 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")"