Handle server returning 200 for range request

Fixes #3156 and #3125.

The progress bar doesn't update while the file is downloaded, but that is fixed by #3124.