mk-fg/python-onedrive — pull request #42 by sjakthol (2014-12-09 11:11:27+00:00)
Title: BITS: Calculate the number of fragments correctly if src_len is multiple of frag_bytes.

Previously one fragment was unconditionally added to the number of fragments because `c*cn` was always zero but `src_len` most likely wasn't. In case the upload size was multiple of frag_bytes the request sent for the last fragment contained an invalid Content-Range header and the entire upload failed with protocol error.

Fixes #41.