equal
deleted
inserted
replaced
410 else: |
410 else: |
411 fname = req.qsparams[b'static'] |
411 fname = req.qsparams[b'static'] |
412 static = self.ui.config(b"web", b"static", untrusted=False) |
412 static = self.ui.config(b"web", b"static", untrusted=False) |
413 if not static: |
413 if not static: |
414 tp = self.templatepath or templater.templatepaths() |
414 tp = self.templatepath or templater.templatepaths() |
415 if isinstance(tp, str): |
415 if isinstance(tp, bytes): |
416 tp = [tp] |
416 tp = [tp] |
417 static = [os.path.join(p, b'static') for p in tp] |
417 static = [os.path.join(p, b'static') for p in tp] |
418 |
418 |
419 staticfile(static, fname, res) |
419 staticfile(static, fname, res) |
420 return res.sendresponse() |
420 return res.sendresponse() |