git: 9front

Download patch

ref: c5580524062896a4c2be829ffeaeb246a7f6a2f7
parent: dd856bca71a1d4ef5ae8bc08e575b2f7a1e239d9
author: cinap_lenrek <cinap_lenrek@felloff.net>
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)
 
--