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.translate,
|
||||||
self.server.baseDir,
|
self.server.baseDir,
|
||||||
actor, shareName,
|
actor, shareName,
|
||||||
callingDomain).encode('utf-8')
|
callingDomain)
|
||||||
if not msg:
|
if not msg:
|
||||||
if callingDomain.endswith('.onion') and \
|
if callingDomain.endswith('.onion') and \
|
||||||
self.server.onionDomain:
|
self.server.onionDomain:
|
||||||
|
@ -11278,7 +11278,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self._redirect_headers(actor + '/tlshares',
|
self._redirect_headers(actor + '/tlshares',
|
||||||
cookie, callingDomain)
|
cookie, callingDomain)
|
||||||
return
|
return
|
||||||
msglen = len(msg)
|
msglen = len(msg.encode('utf-8'))
|
||||||
self._set_headers('text/html', msglen,
|
self._set_headers('text/html', msglen,
|
||||||
cookie, callingDomain)
|
cookie, callingDomain)
|
||||||
self._write(msg)
|
self._write(msg)
|
||||||
|
|
Loading…
Reference in New Issue