Browse Source
Merge pull request #56 from gitfrosh/patch-1
include data in raw_delete request
pull/64/head
Marcos Pereira
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
keycloak/connection.py
|
@ -198,11 +198,12 @@ class ConnectionManager(object): |
|
|
raise KeycloakConnectionError( |
|
|
raise KeycloakConnectionError( |
|
|
"Can't connect to server (%s)" % e) |
|
|
"Can't connect to server (%s)" % e) |
|
|
|
|
|
|
|
|
def raw_delete(self, path, **kwargs): |
|
|
|
|
|
|
|
|
def raw_delete(self, path, data, **kwargs): |
|
|
""" Submit delete request to the path. |
|
|
""" Submit delete request to the path. |
|
|
|
|
|
|
|
|
:arg |
|
|
:arg |
|
|
path (str): Path for request. |
|
|
path (str): Path for request. |
|
|
|
|
|
data (dict): Payload for request. |
|
|
:return |
|
|
:return |
|
|
Response the request. |
|
|
Response the request. |
|
|
:exception |
|
|
:exception |
|
@ -211,6 +212,7 @@ class ConnectionManager(object): |
|
|
try: |
|
|
try: |
|
|
return self._s.delete(urljoin(self.base_url, path), |
|
|
return self._s.delete(urljoin(self.base_url, path), |
|
|
params=kwargs, |
|
|
params=kwargs, |
|
|
|
|
|
data=data, |
|
|
headers=self.headers, |
|
|
headers=self.headers, |
|
|
timeout=self.timeout, |
|
|
timeout=self.timeout, |
|
|
verify=self.verify) |
|
|
verify=self.verify) |
|
|