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)