Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit 96e33e9

Browse files
committed
fore method POST whenever json body sent
1 parent db118d3 commit 96e33e9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

twitter/api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ def __call__(self, params={}, **kwargs):
302302
if jsondata:
303303
body = actually_bytes(json.dumps(jsondata))
304304
headers['Content-Type'] = 'application/json; charset=UTF-8'
305+
method = 'POST'
305306

306307
if self.auth:
307308
url_params = {} if media or jsondata else kwargs

0 commit comments

Comments
 (0)