We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 225ebb7 commit b235836Copy full SHA for b235836
poshc2/server/UrlConfig.py
@@ -61,15 +61,10 @@ def getSockUrls(self):
61
self.sockList = [sock1, sock2]
62
63
def process(self, line):
64
- output = urlparse(line).path
65
- output = output.rpartition('/')[0]
66
- output = output.replace("'", "")
67
- if output != '':
68
- if output[0] == "/":
69
- output = output.lstrip('/')
70
- if output[-1] != "/":
71
- output = output + "/"
+ output = urlparse(line).path.rstrip().lstrip('/')
72
output = output.replace("'", "")
+ if output[-1] != "/":
+ output = output + "/"
73
return output
74
75
def getUrls(self):
0 commit comments