Skip to content

Commit 7b317bc

Browse files
committed
modify_user: fix _requests post syntax
fix #163
1 parent f2127cb commit 7b317bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

geo/Geoserver.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3001,7 +3001,7 @@ def modify_user(
30013001
data = unparse({"user": modifications})
30023002
print(url, data)
30033003
headers = {"content-type": "text/xml", "accept": "application/json"}
3004-
r = self._requests.post("post", url, data=data, headers=headers)
3004+
r = self._requests("post", url, data=data, headers=headers)
30053005

30063006
if r.status_code == 200:
30073007
return "User modified successfully"

0 commit comments

Comments
 (0)