1
1
mirror of https://github.com/r4sas/PBinCLI synced 2025-01-09 06:18:00 +00:00

fix dict merging (#19)

Signed-off-by: r4sas <r4sas@i2pmail.org>
This commit is contained in:
R4SAS 2019-09-17 13:20:26 +00:00
parent 432675f2e6
commit 641c55a6a2
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2

View File

@ -107,9 +107,8 @@ class Shortener:
def getlink(self, url):
if self.api == 'yourls':
data_format = 'json'
args = {'action': 'shorturl', 'format': data_format, 'url': url}
reqest = dict(args.items() + self.auth_args.items())
request = {'action': 'shorturl', 'format': 'json', 'url': url}
request.update(self.auth_args)
result = self.session.post(
url = self.apiurl,