PUT
This commit is contained in:
parent
69f72d6ec0
commit
016520cc76
@ -65,7 +65,7 @@ class API(object):
|
||||
kwargs.update(headers=headers,data=json.dumps(data))
|
||||
|
||||
elif method == "PUT":
|
||||
fn = requests.post
|
||||
fn = requests.put
|
||||
headers = {"content-type": "application/json"}
|
||||
kwargs.update(headers=headers,data=json.dumps(data))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user