lib/evostream/event/commands/push_stream.rb in evostream-event-0.2.7 vs lib/evostream/event/commands/push_stream.rb in evostream-event-0.3.0.pre.48
- old
+ new
@@ -9,10 +9,14 @@
def initialize(commands = {})
super(commands)
end
def cmd
- "pushStream?params=#{Base64.urlsafe_encode64(command.join)}"
+ base = command.join
+ Evostream.logger "Parameters : #{base}"
+ string = Base64.strict_encode64(base)
+ Evostream.logger "Base 64 decoded : #{Base64.strict_decode64(string)}"
+ "pushStream?params=#{string}"
end
private
attr_reader :command