Permalink
Browse files

orb: random cleanup: scoping/quoting

  • Loading branch information...
1 parent 5bf3d6d commit 64659fc68e7c28ca1f6720177fd68f9df89cf605 @falconindy committed Jul 23, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 orb
View
4 orb
@@ -197,7 +197,7 @@ read_response_headers() {
}
read_buffered() {
- local actual= fd=$1 len=$2
+ local readlen= actual= bs= fd=$1 len=$2
while (( len > 0 )); do
(( len > bufsiz )) && readlen=$bufsiz || readlen=$len
@@ -211,7 +211,7 @@ read_response_body() {
if (( content_length )); then
read_buffered $sock $content_length | $content_encoding | ${raw:-$content_type}
- elif [[ "$transfer_encoding" = chunked ]]; then
+ elif [[ $transfer_encoding = chunked ]]; then
while true; do
read -r -d $'\r\n' -u $sock len # read length, consume \r
read -r -n 1 -u $sock _ # consume \n

0 comments on commit 64659fc

Please sign in to comment.