Skip to content

Commit

Permalink
Fix guessing content-type for already-downloaded file.
Browse files Browse the repository at this point in the history
  • Loading branch information
carljm committed May 31, 2013
1 parent bb4e2b8 commit 4b55015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pip/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ def unpack_http_url(link, location, download_cache, download_dir=None):

if already_downloaded:
temp_location = already_downloaded
content_type = mimetypes.guess_type(already_downloaded)
content_type = mimetypes.guess_type(already_downloaded)[0]
logger.notify('File was already downloaded %s' % already_downloaded)
if link.hash:
download_hash = _get_hash_from_file(temp_location, link)
Expand Down

0 comments on commit 4b55015

Please sign in to comment.