Ticket #2677: deluge_webui_base.patch

File deluge_webui_base.patch, 522 bytes (added by fengshaun, 10 years ago)

temporary fix for --base being ignored by twisted web server

Line 
1diff -r deluge-1.3.10_old/deluge/ui/web/server.py deluge-1.3.10/deluge/ui/web/server.py
2630c630
3< self.site = server.Site(self.top_level)
4---
5> #self.site = server.Site(self.top_level)
6637a638,649
7>
8> #changed
9> res = resource.Resource()
10> b = self.base
11> if b == "/":
12> b = ""
13> else:
14> # remove the slashes before and after base
15> b = b[1:-1]
16>
17> res.putChild(b, self.top_level)
18> self.site = server.Site(res)