1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-01 23:57:05 +00:00

remove method argument use, it breaks other commands

This commit is contained in:
downtownallday 2024-09-07 10:48:05 -04:00
parent 77c6a53f81
commit daca497679

View File

@ -24,7 +24,7 @@ def mgmt(cmd, data=None, is_json=False, method='GET'):
setup_key_auth(mgmt_uri)
req = urllib.request.Request(mgmt_uri + cmd, urllib.parse.urlencode(data).encode("utf8") if data else None, method=method)
req = urllib.request.Request(mgmt_uri + cmd, urllib.parse.urlencode(data).encode("utf8") if data else None) #, method=method)
try:
response = urllib.request.urlopen(req)
except urllib.error.HTTPError as e: