forked from shaba/openuds
fixed httpserver for python3 compat
This commit is contained in:
parent
d068bcef60
commit
8a61986dad
@ -116,8 +116,8 @@ class HTTPServerHandler(BaseHTTPServer.BaseHTTPRequestHandler):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
HTTPServerHandler.lock.acquire()
|
HTTPServerHandler.lock.acquire()
|
||||||
length = int(self.headers.getheader('content-length'))
|
length = int(self.headers.get('content-length'))
|
||||||
content = self.rfile.read(length)
|
content = self.rfile.read(length).decode('utf8')
|
||||||
logger.debug('length: {}, content >>{}<<'.format(length, content))
|
logger.debug('length: {}, content >>{}<<'.format(length, content))
|
||||||
params = json.loads(content)
|
params = json.loads(content)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user