summaryrefslogtreecommitdiff
path: root/sys/lib/python
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-12-09 23:11:05 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2014-12-09 23:11:05 +0100
commit469a10f1d95ef94c00fe1a78466e63be130fed1f (patch)
tree0ce40e3dbb916d46144ae4db324751f9457815c6 /sys/lib/python
parentc217da0b5b1e92d0af62f5f373514d1befdb206e (diff)
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.
Diffstat (limited to 'sys/lib/python')
-rw-r--r--sys/lib/python/hgext/hgwebfs.py3
1 files changed, 3 insertions, 0 deletions
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)