Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Fix for zero length responses being returned
Browse files Browse the repository at this point in the history
Change-Id: I3cac7f2985e214f078077a0a5ba660feba306924
  • Loading branch information
garethr authored and Patrick Bozeman committed Aug 12, 2011
1 parent 3912288 commit 5ddb888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router/lib/router/app_connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def on_headers_complete(headers)
end

def process_response_body_chunk(data)
return unless data
return unless data and data.bytesize > 0

# Let parser process as well to properly determine end of message.
# TODO: Once EM 1.0, add in optional bytsize proxy if Content-Length is present.
Expand Down

0 comments on commit 5ddb888

Please sign in to comment.