summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-06-04 14:05:00 +0200
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-06-04 14:05:00 +0200
commit26456e2298376ceb5bc3d7978d7c0aa146e44039 (patch)
treeff0f82149aa85136a0ce191a1bb3db4350a9abed /lib
parent67b1a49f66be8051e7a6b550d416553b1df472f4 (diff)
Added to_s
Diffstat (limited to 'lib')
-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