Skip to content

Commit

Permalink
Merge pull request #164 from pesekon2/fix_modify_user_function
Browse files Browse the repository at this point in the history
modify_user: fix _requests 'post' syntax
  • Loading branch information
iamtekson authored Jul 28, 2024
2 parents f2127cb + 7b317bc commit b7fb808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geo/Geoserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -3001,7 +3001,7 @@ def modify_user(
data = unparse({"user": modifications})
print(url, data)
headers = {"content-type": "text/xml", "accept": "application/json"}
r = self._requests.post("post", url, data=data, headers=headers)
r = self._requests("post", url, data=data, headers=headers)

if r.status_code == 200:
return "User modified successfully"
Expand Down

0 comments on commit b7fb808

Please sign in to comment.