Skip to content

Commit

Permalink
Fixed upload endpoint per Imgur#93
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Hanks, PMP, CSM committed Nov 5, 2019
1 parent 15f1b89 commit c3ad8f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgurpython/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ def upload(self, fd, config=None, anon=True):
}
data.update({meta: config[meta] for meta in set(self.allowed_image_fields).intersection(config.keys())})

return self.make_request('POST', 'upload', data, anon)
return self.make_request('POST', 'image', data, anon)

def upload_from_url(self, url, config=None, anon=True):
if not config:
Expand Down

0 comments on commit c3ad8f5

Please sign in to comment.