projects
/
diaspy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f452d5
)
Fix DELETE can be sent without data
author
Marek Marecki
<marekjm@ozro.pw>
Sun, 23 Apr 2017 13:44:08 +0000
(15:44 +0200)
committer
Marek Marecki
<marekjm@ozro.pw>
Sun, 23 Apr 2017 13:44:08 +0000
(15:44 +0200)
diaspy/connection.py
patch
|
blob
|
blame
|
history
diff --git
a/diaspy/connection.py
b/diaspy/connection.py
index 3a6830db498c3d59a3694f5b6228443a9dfc6d47..c2447760d78480edcd3c83604c30aaf33eb08166 100644
(file)
--- a/
diaspy/connection.py
+++ b/
diaspy/connection.py
@@
-118,7
+118,7
@@
class Connection():
else: request = self._session.put(string, headers=headers, params=params, verify=self._verify_SSL, **kwargs)
return request
- def delete(self, string, data, headers={}, **kwargs):
+ def delete(self, string, data
= None
, headers={}, **kwargs):
"""This method lets you send delete request to session.
Performs additional checks if needed.