Content server: Fix handling of root URL when using --url-prefix

This commit is contained in:
Kovid Goyal 2010-12-11 09:57:40 -07:00
parent 1ad872c1c3
commit 41694e12eb

View File

@ -43,6 +43,9 @@ class DispatchController(object): # {{{
kwargs['action'] = 'f_%d'%len(self.funcs)
if route != '/':
route = self.prefix + route
elif self.prefix:
self.dispatcher.connect(name+'prefix_extra', self.prefix, self,
**kwargs)
self.dispatcher.connect(name, route, self, **kwargs)
self.funcs.append(expose(func))