aboutsummaryrefslogtreecommitdiff
path: root/modules/imgur.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-10-31 16:17:22 +0000
committerGravatar jesopo2018-10-31 16:17:22 +0000
commitbf6a740f7bcf3f1d21f78e67a0ed8a6b167c499f (patch)
tree2f2121d0f48b96a1d16db5b49ef1a0355cd86fe1 /modules/imgur.py
parentREGEX_IMAGE should be a compiled regex! (diff)
signature
Fix typo in modules/imgur.py that caused `headers` passed to utils.http.get_url
to be a set, not a dict. (',' -> ':')
Diffstat (limited to 'modules/imgur.py')
-rw-r--r--modules/imgur.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/imgur.py b/modules/imgur.py
index cc0522e6..d37f0562 100644
--- a/modules/imgur.py
+++ b/modules/imgur.py
@@ -10,7 +10,7 @@ class Module(ModuleManager.BaseModule):
def _image_info(self, hash):
api_key = self.bot.config["imgur-api-key"]
result = utils.http.get_url(URL_IMAGE % hash,
- headers={"Authorization", "Client-ID %s" % api_key},
+ headers={"Authorization": "Client-ID %s" % api_key},
json=True)
if result and result["success"]: