prefetch
This commit is contained in:
parent
fc708b21a9
commit
d51004baeb
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"python.pythonPath": "/bin/python3"
|
||||
}
|
|
@ -87,9 +87,8 @@ class Plugin:
|
|||
|
||||
# Ignore Non text/html but report content/size
|
||||
if not content_type.startswith("text/html"):
|
||||
ipdb.set_trace()
|
||||
try:
|
||||
msg = "\x02{nick1:}\x0F\x02\x0303 ▶▶ [con_type]: {content_type:} ▶▶ [con_length]: {content_length:} ▶▶ \x0F\x02\x0312{d_url:}\x0F\x0303".format(nick1=mask.nick,con_type=content_type,con_length=content_length,d_url=url)
|
||||
msg = "\x02{nick1:}\x0F\x02\x0303 ▶▶ [content_type]: {con_type:} ▶▶ [content_length]: {con_length:} ▶▶ \x0F\x02\x0312{d_url:}\x0F\x0303".format(nick1=mask.nick,con_type=content_type,con_length=content_length,d_url=url)
|
||||
except:
|
||||
msg = "wu/tang: pre-fetch of non text/html failed"
|
||||
msg = self.bot._emoj(msg)
|
||||
|
|
Loading…
Reference in New Issue