pypa/pip — pull request #960 by aababilov (2013-05-27 05:56:01+00:00)
Title: Fix unpack_http_url for already downloaded files

mimetypes.guess_type returns a tuple (type, encoding),
so, use element number 0 as content_type.

Otherwise, TypeError is raised in cache_download
(cannot write a tuple to file).