http prefix for actor

master
Bob Mottram 2019-08-26 11:33:31 +01:00
parent 40c949f054
commit 7c9f78f97d
2 changed files with 1 additions and 2 deletions

View File

@ -2456,7 +2456,7 @@ class PubServer(BaseHTTPRequestHandler):
pageNumber=int(pageNumberStr) pageNumber=int(pageNumberStr)
self.path=self.path.split('?page=')[0] self.path=self.path.split('?page=')[0]
actorStr=self.server.domainFull+self.path.replace('/searchhandle','') actorStr=self.server.httpPrefix+'://'+self.server.domainFull+self.path.replace('/searchhandle','')
length = int(self.headers['Content-length']) length = int(self.headers['Content-length'])
searchParams=self.rfile.read(length).decode('utf-8') searchParams=self.rfile.read(length).decode('utf-8')
if 'searchtext=' in searchParams: if 'searchtext=' in searchParams:

View File

@ -102,7 +102,6 @@ def htmlSearchSharedItems(baseDir: str,searchStr: str, \
""" """
currPage=1 currPage=1
ctr=0 ctr=0
actor=httpPrefix+'://'+actor
sharedItemsForm='' sharedItemsForm=''
searchStrLower=searchStr.replace('%2B','+').replace('%40','@').replace('%3A',':').replace('%23','#').lower().strip('\n') searchStrLower=searchStr.replace('%2B','+').replace('%40','@').replace('%3A',':').replace('%23','#').lower().strip('\n')
searchStrLowerList=searchStrLower.split('+') searchStrLowerList=searchStrLower.split('+')