app/controllers/extface/handler_controller.rb in extface-0.2.2 vs app/controllers/extface/handler_controller.rb in extface-0.2.3

- old
+ new

@@ -31,10 +31,10 @@ else Extface.redis_block do |r| r.append device.uuid, request.body.read @full_buffer = r.get device.uuid end - if bytes_porcessed = device.driver.handle(@full_buffer.b) + if bytes_porcessed = device.driver.pre_handle(@full_buffer.b) Extface.redis_block do |r| r.set device.uuid, @full_buffer.b[bytes_porcessed..-1] end end #stream_job # stream right now :)