diff --git a/devine/core/downloaders/aria2c.py b/devine/core/downloaders/aria2c.py index 39f0985..9fa887a 100644 --- a/devine/core/downloaders/aria2c.py +++ b/devine/core/downloaders/aria2c.py @@ -100,6 +100,12 @@ async def aria2c( # we cannot set an allowed encoding, or it will return compressed # and the code is not set up to uncompress the data continue + if header.lower() == "referer": + arguments.extend(["--referer", value]) + continue + if header.lower() == "user-agent": + arguments.extend(["--user-agent", value]) + continue arguments.extend(["--header", f"{header}: {value}"]) try: