app/controllers/extface/handler_controller.rb in extface-0.3.0c vs app/controllers/extface/handler_controller.rb in extface-0.3.0
- old
+ new
@@ -13,11 +13,10 @@
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
@@ -40,10 +39,9 @@
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