From: ber Date: Wed, 30 Mar 2011 11:20:36 +0000 (+0000) Subject: Range support in roundup-server so large files can be served, X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4b265bb3b2de33517b2c3badbc925c010d725185;p=roundup.git Range support in roundup-server so large files can be served, e.g. media files on iOS/iPads; issue2550694. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4584 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/CHANGES.txt b/CHANGES.txt index 9aa6b79..7599d15 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -46,6 +46,9 @@ Fixed: doesn't have access to a property but can deduce the content by crafting a clever search, group or sort query. see doc/upgrading.txt for how to fix your trackers! (Ralf Schlatterbeck). +- Range support in roundup-server so large files can be served, + e.g. media files on iOS/iPads; issue2550694. (Bernhard Reiter; + Thanks to Jon C. Thomason for the patch.) - Fix search for xapian 1.2 issue2550676 (Bernhard Reiter; Thanks to Olly Betts for providing the patch.) - Some minor typos fixed in doc/customizing.txt (Thanks Ralf Hemmecke). diff --git a/roundup/scripts/roundup_server.py b/roundup/scripts/roundup_server.py index 12a2d00..15c3951 100644 --- a/roundup/scripts/roundup_server.py +++ b/roundup/scripts/roundup_server.py @@ -362,6 +362,9 @@ class RoundupRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): if os.environ.has_key('CGI_SHOW_TIMING'): env['CGI_SHOW_TIMING'] = os.environ['CGI_SHOW_TIMING'] env['HTTP_ACCEPT_LANGUAGE'] = self.headers.get('accept-language') + range = self.headers.getheader('range') + if range: + env['HTTP_RANGE'] = range # do the roundup thing tracker = self.get_tracker(tracker_name)