From b3451ff8c4417708ff562a65437102f7d649227d Mon Sep 17 00:00:00 2001 From: Christophe Courtois Date: Thu, 28 Feb 2019 15:00:37 +0100 Subject: [PATCH] fix custom_ending --- mypolr/polr_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mypolr/polr_api.py b/mypolr/polr_api.py index d4f1a84..71cb35f 100644 --- a/mypolr/polr_api.py +++ b/mypolr/polr_api.py @@ -87,7 +87,7 @@ def shorten(self, long_url, custom_ending=None, is_secret=False): params = { 'url': long_url, 'is_secret': 'true' if is_secret else 'false', - 'custom_encoding': custom_ending + 'custom_ending': custom_ending } data, r = self._make_request(self.api_shorten_endpoint, params) if r.status_code == 400: