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
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(
"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.
:arg
path (str): Path for request.
data (dict): Payload for request.
:return
Response the request.
:exception
@ -211,6 +212,7 @@ class ConnectionManager(object):
try:
return self._s.delete(urljoin(self.base_url, path),
params=kwargs,
data=data,
headers=self.headers,
timeout=self.timeout,
verify=self.verify)

Loading…
Cancel
Save