astro

a POSIX shell compatible gemini client (mirror of https://github.com/blmayer/astro)
git clone https://git.clttr.info/astro.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit 001b8e23d455b184b234ba5920d8e894c45e7830
parent 2b39dfb8a3d0dfb213cb2aeb1c817c030fdc7f82
Author: blmayer <bleemayer@gmail.com>
Date:   Wed, 21 Jul 2021 00:32:53 -0300

Fixed reading body for trailing whitespace

Diffstat:
Mastro | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/astro b/astro @@ -117,7 +117,7 @@ fetch() { return 11 ;; 59) - echo "Bad request" >&2 + echo "Bad request: $meta" >&2 return 12 ;; 60) @@ -145,7 +145,7 @@ fetch() { [ "$debug" ] && echo "Charset: $charset" >&2 && sleep 1 i=1 - while read -r line + while IFS='' read -r line do line="$(echo "$line" | tr -d '\r')" echo "$line" | grep -q '```' && pre=$((1 - pre)) && line=""