mirror of https://gitlab.com/bashrc2/epicyon
Avoid encode error
parent
4f58cc98c1
commit
6e7b508b80
|
@ -11267,7 +11267,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.translate,
|
||||
self.server.baseDir,
|
||||
actor, shareName,
|
||||
callingDomain).encode('utf-8')
|
||||
callingDomain)
|
||||
if not msg:
|
||||
if callingDomain.endswith('.onion') and \
|
||||
self.server.onionDomain:
|
||||
|
@ -11278,7 +11278,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self._redirect_headers(actor + '/tlshares',
|
||||
cookie, callingDomain)
|
||||
return
|
||||
msglen = len(msg)
|
||||
msglen = len(msg.encode('utf-8'))
|
||||
self._set_headers('text/html', msglen,
|
||||
cookie, callingDomain)
|
||||
self._write(msg)
|
||||
|
|
Loading…
Reference in New Issue