pypa/pip — pull request #953 by aababilov (2013-05-21 12:52:09+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).