Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 87abec1

Browse files
committed
probable fix for a bug reported by Prashant Jadhav
1 parent cf8e926 commit 87abec1

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

doc/THANKS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ Mounir Idrassi <[email protected]>
142142
Daliev Ilya <[email protected]>
143143
for reporting a bug
144144

145+
Prashant Jadhav <[email protected]>
146+
for reporting a bug
147+
145148
Dirk Jagdmann <[email protected]>
146149
for reporting a typo in the documentation
147150

lib/takeover/web.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ def webInit(self):
192192

193193
requestDir = normalizePath(requestDir)
194194

195+
if requestDir[0] != '/':
196+
requestDir = '/' + requestDir
197+
195198
self.webBaseUrl = "%s://%s:%d%s" % (conf.scheme, conf.hostname, conf.port, requestDir)
196199
self.webUploaderUrl = "%s/%s" % (self.webBaseUrl.rstrip('/'), uploaderName)
197200
self.webUploaderUrl = ntToPosixSlashes(self.webUploaderUrl.replace("./", "/"))

0 commit comments

Comments
 (0)