mirror of https://gitlab.com/bashrc2/epicyon
Try original host
parent
e0e259fceb
commit
83698f5c2c
12
daemon.py
12
daemon.py
|
@ -394,12 +394,12 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
# Convert the headers needed for signature verification to dict
|
# Convert the headers needed for signature verification to dict
|
||||||
headersDict={}
|
headersDict={}
|
||||||
headersDict['host']=self.headers['host']
|
headersDict['host']=self.headers['host']
|
||||||
if messageJson.get('actor'):
|
#if messageJson.get('actor'):
|
||||||
actorDomain,actorPort=getDomainFromActor(messageJson['actor'])
|
# actorDomain,actorPort=getDomainFromActor(messageJson['actor'])
|
||||||
if actorPort:
|
# if actorPort:
|
||||||
if actorPort!=80 and actorPort!=443:
|
# if actorPort!=80 and actorPort!=443:
|
||||||
actorDomain=actorDomain+':'+str(actorPort)
|
# actorDomain=actorDomain+':'+str(actorPort)
|
||||||
headersDict['host']=actorDomain
|
# headersDict['host']=actorDomain
|
||||||
headersDict['signature']=self.headers['signature']
|
headersDict['signature']=self.headers['signature']
|
||||||
if self.headers.get('Date'):
|
if self.headers.get('Date'):
|
||||||
headersDict['Date']=self.headers['Date']
|
headersDict['Date']=self.headers['Date']
|
||||||
|
|
Loading…
Reference in New Issue