summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/freeswitch_event.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/freeswitch_event.rb b/lib/freeswitch_event.rb
index 89d8ea0..f17cd78 100644
--- a/lib/freeswitch_event.rb
+++ b/lib/freeswitch_event.rb
@@ -60,7 +60,7 @@ class FreeswitchEventSocket
if ! body.blank?
message['_BODY'] = body
end
- header.split("\n").each do |line|
+ header.to_s.split("\n").each do |line|
key, value = line.split(/\: */, 2)
message[key] = value
end