From d7add5f02fce6b7eedbc07ecd0bae4a01e11edd9 Mon Sep 17 00:00:00 2001 From: Gordon Shumway <39967334+oddluck@users.noreply.github.com> Date: Mon, 17 Jun 2019 00:56:05 -0400 Subject: [PATCH] Update plugin.py --- ASCII/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)