app/controllers/extface/handler_controller.rb in extface-0.3.0 vs app/controllers/extface/handler_controller.rb in extface-0.4.0
- old
+ new
@@ -13,10 +13,11 @@
unless device.present?
render nothing: true, status: :not_found
else
stream_job
end
+ response.stream.write ''
rescue => e
p e.message
render nothing: true, status: :internal_server_error
ensure
response.stream.close
@@ -39,9 +40,10 @@
end
end
#stream_job # stream right now :)
status = :ok
end
+ response.stream.write ''
rescue => e
p e.message
render nothing: true, status: :internal_server_error
ensure
response.stream.close