Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

orb: random cleanup: scoping/quoting

  • Loading branch information...
commit 64659fc68e7c28ca1f6720177fd68f9df89cf605 1 parent 5bf3d6d
Dave Reisner authored July 23, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  orb
4  orb
@@ -197,7 +197,7 @@ read_response_headers() {
197 197
 }
198 198
 
199 199
 read_buffered() {
200  
-  local actual= fd=$1 len=$2
  200
+  local readlen= actual= bs= fd=$1 len=$2
201 201
 
202 202
   while (( len > 0 )); do
203 203
     (( len > bufsiz )) && readlen=$bufsiz || readlen=$len
@@ -211,7 +211,7 @@ read_response_body() {
211 211
 
212 212
   if (( content_length )); then
213 213
     read_buffered $sock $content_length | $content_encoding | ${raw:-$content_type}
214  
-  elif [[ "$transfer_encoding" = chunked ]]; then
  214
+  elif [[ $transfer_encoding = chunked ]]; then
215 215
     while true; do
216 216
       read -r -d $'\r\n' -u $sock len       # read length, consume \r
217 217
       read -r -n 1 -u $sock _               # consume \n

0 notes on commit 64659fc

Please sign in to comment.
Something went wrong with that request. Please try again.