Skip to content

Commit

Permalink
Fixed UrlConfig for Connection Reset Error
Browse files Browse the repository at this point in the history
  • Loading branch information
benpturner authored and Console committed Sep 17, 2020
1 parent 225ebb7 commit b235836
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions poshc2/server/UrlConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,10 @@ def getSockUrls(self):
self.sockList = [sock1, sock2]

def process(self, line):
output = urlparse(line).path
output = output.rpartition('/')[0]
output = output.replace("'", "")
if output != '':
if output[0] == "/":
output = output.lstrip('/')
if output[-1] != "/":
output = output + "/"
output = urlparse(line).path.rstrip().lstrip('/')
output = output.replace("'", "")
if output[-1] != "/":
output = output + "/"
return output

def getUrls(self):
Expand Down

0 comments on commit b235836

Please sign in to comment.