cavaliergopher / grab

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

Providing an existing directory to Request.Filename does not download the file to that location #3

Closed wadtech closed 8 years ago

wadtech commented 8 years ago

In client.go, the provided Request.Filename is resolved to an existing directory, and the needFilename flag is set to true. When the Request.Filename is later resolved from the Content-Disposition header, or URL, it is not appended to the existing directory path.

2 provides an example failing test case

cavaliercoder commented 8 years ago

Fixed in pull request #2.