From 43461e6f26223327c89401bcb9ad58cb70ea4d1b Mon Sep 17 00:00:00 2001 From: jShaf Date: Wed, 16 Feb 2011 18:45:02 -0500 Subject: [PATCH] Add body content for inbound listener --- lib/fsr/listener/inbound.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fsr/listener/inbound.rb b/lib/fsr/listener/inbound.rb index 9af992d..2020c1b 100644 --- a/lib/fsr/listener/inbound.rb +++ b/lib/fsr/listener/inbound.rb @@ -75,7 +75,7 @@ def receive_request(header, content) when "command/reply" return handle_reply(header, content) when "text/event-plain" - hash_content = headers_2_hash(content) + hash_content = headers_2_hash(content).merge(:body => content.split("\n\n",2)[1].to_s) when "text/event-json" require "json" hash_content = JSON.parse(content)