Skip to content

Commit

Permalink
Fix based on issue 26. #26
Browse files Browse the repository at this point in the history
  • Loading branch information
havilchis committed Sep 9, 2017
1 parent d26d6f9 commit f2b6a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ruby-asterisk/request.rb
Expand Up @@ -16,7 +16,7 @@ def initialize(action, parameters = {})
def commands
_commands = ["Action: #{self.action}\r\n", "ActionID: #{self.action_id}\r\n"]
self.parameters.each do |key, value|
_commands << key + ": #{value}\r\n" unless value.nil?
_commands<<"#{key.to_s}: #{value.to_s}\r\n" unless value.nil?
end
_commands[_commands.length - 1] << "\r\n"
_commands
Expand Down

0 comments on commit f2b6a3c

Please sign in to comment.