cavaliergopher / grab

A download manager package for Go
BSD 3-Clause "New" or "Revised" License
1.39k stars 150 forks source link

use passed request size if content length is not provided #53

Closed hbakhtiyor closed 5 years ago

cavaliercoder commented 5 years ago

Hey thanks for submitting this. I'm not sure I understand the problem this solves though. Can you please elaborate on the issue you are solving with this PR?

The purpose of this function is to test:

At all times, Response.Size should represent the file size that grab thinks is true, given the state of the world - not what the user expects it to be.

cavaliercoder commented 5 years ago

Closing due to inactivity. Please reopen and respond to the above questions if this is still important.