Fri Sep  3 18:03:52 CEST 2010  Bernard `Guyzmo` Pratz <bpratz{at}bearstech.com>
  * Added range support to do_http() and inside get()
diff -rN old-tahoe-lafs/src/allmydata/scripts/common_http.py new-tahoe-lafs/src/allmydata/scripts/common_http.py
30c30
< def do_http(method, url, body=""):
---
> def do_http(method, url, body="", headers={}):
53a54,55
>     for header, value in headers.iteritems():
>         c.putheader(header, value)
diff -rN old-tahoe-lafs/src/allmydata/scripts/tahoe_get.py new-tahoe-lafs/src/allmydata/scripts/tahoe_get.py
13a14
>     frange = None
26,27c27,31
<     resp = do_http("GET", url)
<     if resp.status in (200, 201,):
---
>     if frange:
>         resp = do_http("GET", url, headers={'Range' : 'bytes=%d-%d' % (frange[0], frange[1])})
>     else:
>         resp = do_http("GET", url)
>     if resp.status in (200, 201, 206):
