diff --git a/pypdl/downloader.py b/pypdl/downloader.py index 8f090ef..ff4cad1 100644 --- a/pypdl/downloader.py +++ b/pypdl/downloader.py @@ -60,6 +60,9 @@ async def worker( else: self.curr = downloaded_size + if kwargs.get("headers") is not None: + kwargs["headers"] = kwargs["headers"].copy() + if self.curr < size: start = start + self.curr kwargs.setdefault("headers", {}).update({"range": f"bytes={start}-{end}"})