diff options
author | Lorenz Diener <[email protected]> | 2017-09-08 13:43:20 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2017-09-08 13:43:20 +0200 |
commit | e56bf7b6e1c7c687b55fbe035f3492eb05eba2a1 (patch) | |
tree | a95521f4650c319f68bba421e7aafb72cee8b44c | |
parent | c8490be2a717467c61381245e0fa2793a48c57ae (diff) | |
parent | 71d1038b323a5c949c4480a552a77855b5a1f5c3 (diff) | |
download | mastodon.py-e56bf7b6e1c7c687b55fbe035f3492eb05eba2a1.tar.gz |
Merge pull request #82 from lambadalambda/patch-1
Send params as part of the query in GET requests
-rw-r--r-- | mastodon/Mastodon.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index c835bac..cd641e5 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py | |||
@@ -923,7 +923,7 @@ class Mastodon: | |||
923 | response_object = None | 923 | response_object = None |
924 | try: | 924 | try: |
925 | if method == 'GET': | 925 | if method == 'GET': |
926 | response_object = requests.get(self.api_base_url + endpoint, data = params, headers = headers, files = files, timeout = self.request_timeout) | 926 | response_object = requests.get(self.api_base_url + endpoint, params = params, headers = headers, files = files, timeout = self.request_timeout) |
927 | 927 | ||
928 | if method == 'POST': | 928 | if method == 'POST': |
929 | response_object = requests.post(self.api_base_url + endpoint, data = params, headers = headers, files = files, timeout = self.request_timeout) | 929 | response_object = requests.post(self.api_base_url + endpoint, data = params, headers = headers, files = files, timeout = self.request_timeout) |