Skip to content

Commit

Permalink
Fix some linting errors in previous commit.
Browse files Browse the repository at this point in the history
References #312
  • Loading branch information
lsegal committed Jul 10, 2014
1 parent e0f3fce commit 428b0df
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,9 +553,11 @@ AWS.Request = inherit({
});
} else {
httpStream.on('readable', function() {
while (null !== (chunk = httpStream.read())) {
stream.push(chunk);
}
var chunk;
do {
chunk = httpStream.read();
if (chunk !== null) stream.push(chunk);
} while (chunk !== null);
stream.read(0);
});
httpStream.on('end', function() {
Expand Down

0 comments on commit 428b0df

Please sign in to comment.