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):
|
||||
self.handlers = []
|
||||
|
||||
def add_handler(self, handler):
|
||||
return
|
||||
|
||||
def open(self, req, data=None):
|
||||
return Webconn('/mnt/web', req)
|
||||
|
||||
|
|
Loading…
Reference in a new issue