Turtle: Catch more parts for buffering

This commit is contained in:
Sebastian Serth
2021-03-15 19:53:29 +01:00
parent 7c47706439
commit ef50b9b859

View File

@ -278,7 +278,7 @@ class SubmissionsController < ApplicationController
for part in message.split("\n") for part in message.split("\n")
self.parse_message(part,output_stream,socket, container, false) self.parse_message(part,output_stream,socket, container, false)
end end
elsif message.include?('<img') || message.start_with?('{"cmd":') elsif message.include?('<img') || message.start_with?('{"cmd') || message.include?('"turtlebatch"')
#Rails.logger.info('img foung') #Rails.logger.info('img foung')
@buffering = true @buffering = true
@buffer = '' @buffer = ''