Commit Graph
3 Commits
Author SHA1 Message Date
Chris Sutcliff 8cd23c3265 fix(upload): send the 406 response for a rejected upload 2026-10-19 21:07:40 +01:00
Chris Sutcliff 05575a28d5 fix(upload): don't crash when an upload is rejected 2026-10-19 20:52:21 +01:00
Chris Sutcliff 69a58e64ca fix(upload): restart after a firmware upload when the client closes the connection
uploadComplete() leaves _is_firmware / _is_filesystem set after a
successful upload. When the client then closes the connection,
handleDisconnect() sees the flags, treats it as an aborted upload and
sets the status back to NORMAL, cancelling the pending restart. The WebUI
gets away with it because its status poll turns the pending restart into
a requested one first; an upload from curl or a script is accepted
(md5_ok) but the device keeps running the old firmware until something
else restarts it.

Clear the flags once the upload has completed.
2026-10-14 00:52:28 +01:00