Fixed failing downloads when login is required
Merge pull request #2 from andwun/master

Fixed failing downloads when login is required