From 20867834aa7e1a4f117ff5998d04a543b5878ad4 Mon Sep 17 00:00:00 2001 From: Gordon Shumway <39967334+oddluck@users.noreply.github.com> Date: Fri, 6 Dec 2019 09:55:13 -0500 Subject: [PATCH] png: always allow paste.ee raw links --- IRCArt/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IRCArt/plugin.py b/IRCArt/plugin.py index b583467..0957b40 100644 --- a/IRCArt/plugin.py +++ b/IRCArt/plugin.py @@ -691,7 +691,7 @@ class IRCArt(callbacks.Plugin): ua = UserAgent() header = {'User-Agent':str(ua.random)} r = requests.head(url, headers=header) - if "text/plain" in r.headers["content-type"]: + if "text/plain" in r.headers["content-type"] or url.startswith('https://paste.ee/r/'): file = requests.get(url, headers=header) else: irc.reply("Invalid file type.", private=False, notice=False)