diff --git a/ASCII/plugin.py b/ASCII/plugin.py index 659035d..169af4f 100644 --- a/ASCII/plugin.py +++ b/ASCII/plugin.py @@ -844,7 +844,7 @@ class ASCII(callbacks.Plugin): ua = UserAgent() header = {'User-Agent':str(ua.random)} r = requests.head(url, headers=header) - if "text/plain" in r.headers["content-type"] and int(r.headers["content-length"]) < 1000000: + if "text/plain" in r.headers["content-type"]: file = requests.get(url, headers=header) else: irc.reply("Invalid file type.", private=False, notice=False)