mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 11:25:57 +08:00
Fixed issue where large files could no longer be sent
CURA-2286
This commit is contained in:
parent
97cf79c2e1
commit
9de064fdba
@ -552,6 +552,8 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||
if self._use_gzip:
|
||||
file_name = "%s.gcode.gz" % Application.getInstance().getPrintInformation().jobName
|
||||
single_string_file_data = gzip.compress(single_string_file_data.encode("utf-8"))
|
||||
# Pretend that this is a response, as zipping might take a bit of time.
|
||||
self._last_response_time = time()
|
||||
else:
|
||||
file_name = "%s.gcode" % Application.getInstance().getPrintInformation().jobName
|
||||
single_string_file_data = single_string_file_data.encode("utf-8")
|
||||
|
Loading…
x
Reference in New Issue
Block a user