From 469a10f1d95ef94c00fe1a78466e63be130fed1f Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 9 Dec 2014 23:11:05 +0100 Subject: 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. --- sys/lib/python/hgext/hgwebfs.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/lib/python') diff --git a/sys/lib/python/hgext/hgwebfs.py b/sys/lib/python/hgext/hgwebfs.py index b18cb72b7..dbb529789 100644 --- a/sys/lib/python/hgext/hgwebfs.py +++ b/sys/lib/python/hgext/hgwebfs.py @@ -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) -- cgit v1.2.3