Skip to content

Commit 4c1bcb0

Browse files
Bernhard ReiterBernhard Reiter
authored andcommitted
Range support in roundup-server so large files can be served...
...e.g. media files on iOS/iPads; issue2550694.
1 parent cb9aa4e commit 4c1bcb0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ Fixed:
4646
doesn't have access to a property but can deduce the content by
4747
crafting a clever search, group or sort query.
4848
see doc/upgrading.txt for how to fix your trackers! (Ralf Schlatterbeck).
49+
- Range support in roundup-server so large files can be served,
50+
e.g. media files on iOS/iPads; issue2550694. (Bernhard Reiter;
51+
Thanks to Jon C. Thomason for the patch.)
4952
- Fix search for xapian 1.2 issue2550676
5053
(Bernhard Reiter; Thanks to Olly Betts for providing the patch.)
5154
- Some minor typos fixed in doc/customizing.txt (Thanks Ralf Hemmecke).

roundup/scripts/roundup_server.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,9 @@ def inner_run_cgi(self):
362362
if os.environ.has_key('CGI_SHOW_TIMING'):
363363
env['CGI_SHOW_TIMING'] = os.environ['CGI_SHOW_TIMING']
364364
env['HTTP_ACCEPT_LANGUAGE'] = self.headers.get('accept-language')
365+
range = self.headers.getheader('range')
366+
if range:
367+
env['HTTP_RANGE'] = range
365368

366369
# do the roundup thing
367370
tracker = self.get_tracker(tracker_name)

0 commit comments

Comments
 (0)