From 7c9f78f97dfae251bb7303739ad2e4a765febc68 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 26 Aug 2019 11:33:31 +0100 Subject: [PATCH] http prefix for actor --- daemon.py | 2 +- webinterface.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index 6ed4c983..2acbff7a 100644 --- a/daemon.py +++ b/daemon.py @@ -2456,7 +2456,7 @@ class PubServer(BaseHTTPRequestHandler): pageNumber=int(pageNumberStr) 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']) searchParams=self.rfile.read(length).decode('utf-8') if 'searchtext=' in searchParams: diff --git a/webinterface.py b/webinterface.py index c0ff1f7b..ee17d7c3 100644 --- a/webinterface.py +++ b/webinterface.py @@ -102,7 +102,6 @@ def htmlSearchSharedItems(baseDir: str,searchStr: str, \ """ currPage=1 ctr=0 - actor=httpPrefix+'://'+actor sharedItemsForm='' searchStrLower=searchStr.replace('%2B','+').replace('%40','@').replace('%3A',':').replace('%23','#').lower().strip('\n') searchStrLowerList=searchStrLower.split('+')