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:
cinap_lenrek 2014-12-09 23:11:05 +01:00
parent c217da0b5b
commit 469a10f1d9

View file

@ -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)