After attempting to donwload and extract a zipfile using httpx
rz = httpx.get(url)
with zipfile.ZipFile(BytesIO(rz.content)) as z:
z.extractall(DOWNLOAD_PATH)
it throws the following error zipfile.BadZipFile: File is not a zip file
However, using the exact same code but with the requests module works as intended
rz = requests.get(url)
with zipfile.ZipFile(BytesIO(rz.content)) as z:
z.extractall(DOWNLOAD_PATH)