Skip to content

v0.1.1

Latest

Choose a tag to compare

@github-actions github-actions released this 17 Nov 16:52
· 3 commits to master since this release
Refuse a cloud save download that comes cut short on Windows

When the connection closed in the middle of a download, WinHTTP ended
the body as if it were complete. The transport then renamed the .part
file and reported status 200, so the game kept a broken save in the
character's folder. The new test of a download cut short showed it:
1000 bytes of a 4000-byte save were kept.

The transport now counts the bytes that came against the reply's
Content-Length, when the reply gives one. When they differ, it deletes
the .part file, logs how many bytes came, and gives no reply, as for a
connection that fails. The Android transport got the same check in
dc044c1b12, and curl already reports a transfer cut short as an error.