Browse Source

Merge pull request #56 from gitfrosh/patch-1

include data in raw_delete request
master
Marcos Pereira 5 years ago
committed by GitHub
parent
commit
03a521050a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      keycloak/connection.py

4
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)

Loading…
Cancel
Save