Merge pull request #82 from lambadalambda/patch-1

Send params as part of the query in GET requests
This commit is contained in:
Lorenz Diener 2017-09-08 13:43:20 +02:00 cometido por GitHub
commit e56bf7b6e1

Veure arxiu

@ -923,7 +923,7 @@ class Mastodon:
response_object = None
try:
if method == 'GET':
response_object = requests.get(self.api_base_url + endpoint, data = params, headers = headers, files = files, timeout = self.request_timeout)
response_object = requests.get(self.api_base_url + endpoint, params = params, headers = headers, files = files, timeout = self.request_timeout)
if method == 'POST':
response_object = requests.post(self.api_base_url + endpoint, data = params, headers = headers, files = files, timeout = self.request_timeout)