From 408b30162a78072bd264ae322491fdaf4f6064bb Mon Sep 17 00:00:00 2001 From: bit4bit Date: Sat, 25 Feb 2012 22:40:01 -0500 Subject: [PATCH] Fix, for data with content : when read from commandsocket --- lib/librevox/command_socket.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/librevox/command_socket.rb b/lib/librevox/command_socket.rb index f399c51..6efc735 100644 --- a/lib/librevox/command_socket.rb +++ b/lib/librevox/command_socket.rb @@ -33,8 +33,7 @@ def read_response end length = response.headers[:content_length].to_i - response.content = @socket.read(length) if length > 0 - + response.instance_variable_set(:@content, length > 0 ? @socket.read(length) : "") response end