[WebUI] Fix `TypeError` in DelugeWeb constructor

In `twisted 22.10`, a check new for passing the `path` variable as
`bytes` in the `putChild` method.
We were enforcing this on every other place but the `__init__` of
`DelugeWeb` itself.

Ref: https://github.com/twisted/twisted/pull/11718
Closes: https://dev.deluge-torrent.org/ticket/3566
This commit is contained in:
DjLegolas 2022-11-07 01:05:55 +02:00 committed by Calum Lind
parent b3d1fd79a8
commit 3565a9a817
No known key found for this signature in database
GPG Key ID: 90597A687B836BA3
1 changed files with 1 additions and 1 deletions

View File

@ -682,7 +682,7 @@ class DelugeWeb(component.Component):
if self.base != '/':
# Strip away slashes and serve on the base path as well as root path
self.top_level.putChild(self.base.strip('/'), self.top_level)
self.top_level.putChild(self.base.strip('/').encode(), self.top_level)
setup_translation()