equal
deleted
inserted
replaced
414 fname = req.qsparams[b'static'] |
414 fname = req.qsparams[b'static'] |
415 static = self.ui.config(b"web", b"static", untrusted=False) |
415 static = self.ui.config(b"web", b"static", untrusted=False) |
416 if not static: |
416 if not static: |
417 tp = self.templatepath or templater.templatedir() |
417 tp = self.templatepath or templater.templatedir() |
418 if tp is not None: |
418 if tp is not None: |
419 static = [os.path.join(tp, b'static')] |
419 static = os.path.join(tp, b'static') |
420 |
420 |
421 staticfile(static, fname, res) |
421 staticfile(static, fname, res) |
422 return res.sendresponse() |
422 return res.sendresponse() |
423 |
423 |
424 # top-level index |
424 # top-level index |