Skip to content

Commit 2681b9c

Browse files
Dominic ReinhardDominic Reinhard
authored andcommitted
Check method_name instead of method_function when determining whether to use query params or post body.
1 parent 6620c09 commit 2681b9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

telesign/rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def _execute(self, method_function, method_name, resource, **params):
207207
url_encoded_fields,
208208
user_agent=self.user_agent)
209209

210-
if method_function in ['POST', 'PUT']:
210+
if method_name in ['POST', 'PUT']:
211211
payload = {'data': url_encoded_fields}
212212
else:
213213
payload = {'params': url_encoded_fields}

0 commit comments

Comments
 (0)