shithub: riscv

Download patch

ref: 469a10f1d95ef94c00fe1a78466e63be130fed1f
parent: c217da0b5b1e92d0af62f5f373514d1befdb206e
author: cinap_lenrek <[email protected]>
date: Tue Dec 9 18:11:05 EST 2014

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.

--- a/sys/lib/python/hgext/hgwebfs.py
+++ b/sys/lib/python/hgext/hgwebfs.py
@@ -68,6 +68,9 @@
 	def __init__(self):
 		self.handlers = []
 
+	def add_handler(self, handler):
+		return
+
 	def open(self, req, data=None):
 		return Webconn('/mnt/web', req)