This commit is contained in:
Christian Rendina 2020-03-09 02:07:54 +01:00
parent 84f11102b7
commit 615bcb244e
1 changed files with 2 additions and 2 deletions

View File

@ -139,10 +139,10 @@ class InlineBot:
if not r:
return self.errorText
if not "authorized" in r.headers or not "success" in r.headers or not "htmldescription" in r.headers or not "imageurl" in r.headers or not command.getHeaderField() in r.headers:
if not "authorized" in r.headers or not "success" in r.headers or not command.getHeaderField() in r.headers:
return self.errorText
if r.headers["authorized"] != "true" or r.headers["success"] != "true" or r.headers[requiredField] == "":
if r.headers["authorized"] != "true" or r.headers["success"] != "true" or r.headers[command.getHeaderField()] == "":
return self.errorText
return r.headers[command.getHeaderField()]