diff --git a/src/poetry/repositories/http_repository.py b/src/poetry/repositories/http_repository.py index db7a365405c..515907e72e5 100644 --- a/src/poetry/repositories/http_repository.py +++ b/src/poetry/repositories/http_repository.py @@ -169,7 +169,7 @@ def _get_info_from_metadata(self, link: Link) -> PackageInfo | None: ) ): metadata_hash = getattr(hashlib, hash_name)( - response.text.encode() + response.content ).hexdigest() if metadata_hash != link.metadata_hashes[hash_name]: self._log(