From 7b317bc6737f1a94c7fd9592d8d07a21295a2d0d Mon Sep 17 00:00:00 2001 From: Ondrej Pesek Date: Sun, 28 Jul 2024 16:39:37 +0200 Subject: [PATCH] modify_user: fix _requests post syntax fix #163 --- geo/Geoserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geo/Geoserver.py b/geo/Geoserver.py index ecec6e3..2bfc96d 100644 --- a/geo/Geoserver.py +++ b/geo/Geoserver.py @@ -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"