1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 16:10:26 +00:00

fix clear text logging (#7640)

* fix clear text logging

* update

---------

Co-authored-by: 孙永强 <11704063+s-yongqiang@user.noreply.gitee.com>
This commit is contained in:
awu0403
2025-03-24 11:01:49 +08:00
committed by GitHub
parent 3c9394ced4
commit 8151f7cf1c
4 changed files with 1 additions and 12 deletions

View File

@@ -102,17 +102,12 @@ class AbstractApi(object) :
def __httpPost(self, url, args) :
realUrl = self.__appendToken(url)
if DEBUG is True :
print(realUrl, args)
return requests.post(realUrl, data = json.dumps(args, ensure_ascii = False).encode('utf-8')).json()
def __httpGet(self, url) :
realUrl = self.__appendToken(url)
if DEBUG is True :
print(realUrl)
return requests.get(realUrl).json()
def __post_file(self, url, media_file):