diff --git a/pulsar/client/transport/curl.py b/pulsar/client/transport/curl.py index 3d1073f7..242e63ec 100644 --- a/pulsar/client/transport/curl.py +++ b/pulsar/client/transport/curl.py @@ -79,7 +79,7 @@ def post_file(url, path): def get_size(url) -> int: - response = requests.head(url) + response = requests.head(url, headers={"accept-encoding": "identity"}) if response.status_code >= 299: log.warning("Response to HEAD request for '%s' with status code %s, cannot resume download", url, response.status_code) return -1