hgwebfs: add fake add_handler method for HTTPRangeHandler()
provide a add_handler() so code trying to add byterange.HTTPRangeHandler will succeed. webfs does handle "206 Partial Content" already.
This commit is contained in:
parent
c217da0b5b
commit
469a10f1d9
1 changed files with 3 additions and 0 deletions
|
@ -68,6 +68,9 @@ class Webopener:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.handlers = []
|
self.handlers = []
|
||||||
|
|
||||||
|
def add_handler(self, handler):
|
||||||
|
return
|
||||||
|
|
||||||
def open(self, req, data=None):
|
def open(self, req, data=None):
|
||||||
return Webconn('/mnt/web', req)
|
return Webconn('/mnt/web', req)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue