Skip to content

Commit

Permalink
Fixed reading body for trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
blmayer committed Jul 21, 2021
1 parent 2b39dfb commit 001b8e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions astro
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ fetch() {
return 11
;;
59)
echo "Bad request" >&2
echo "Bad request: $meta" >&2
return 12
;;
60)
Expand Down Expand Up @@ -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=""
Expand Down

0 comments on commit 001b8e2

Please sign in to comment.