diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-06-04 14:05:00 +0200 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-06-04 14:05:00 +0200 |
commit | 26456e2298376ceb5bc3d7978d7c0aa146e44039 (patch) | |
tree | ff0f82149aa85136a0ce191a1bb3db4350a9abed /lib/freeswitch_event.rb | |
parent | 67b1a49f66be8051e7a6b550d416553b1df472f4 (diff) |
Added to_s
Diffstat (limited to 'lib/freeswitch_event.rb')
-rw-r--r-- | lib/freeswitch_event.rb | 2 |
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 |