twitter/bower — pull request #36 by manuelvanrijn (2012-09-12 13:33:21+00:00)
Title: Handle redirect for downloads and fixes downloading the file currupted

As described in issue #31 there seemed to be a problem with downloading a zipball from github.

In this pull request I've added a redirect check, that will perform the download on the correct (redirect to) url instead.

While testing this out I found out that writing the file to the temp location resulted in a corrupt file, so I also changed that piece of code.

**Note:**
Not sure why but I can't find out why my download isn't shown in the component folder. Could it be that the download function was never intended to perform zip downloads? This would explain why downloading a zip could result in a corrupt download