mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 17:43:38 +02:00
Content server: Fix handling of root URL when using --url-prefix
This commit is contained in:
parent
1ad872c1c3
commit
41694e12eb
1 changed files with 3 additions and 0 deletions
|
|
@ -43,6 +43,9 @@ def __call__(self, name, route, func, **kwargs):
|
|||
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))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue