vendor/tramline

changeset 5:235dfe5e7ce9 gracinet-fix-range

#2017: download hangs with some browser plugins
author gracinet
date Mon, 24 Aug 2009 22:12:44 +0000
parents b7abc7431525
children 47723198ebca 906c932e771a
files CHANGES src/tramline/core.py
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/CHANGES
     1.2 +++ b/CHANGES
     1.3 @@ -7,7 +7,7 @@
     1.4    svn externals
     1.5  Bug fixes
     1.6  ~~~~~~~~~
     1.7 --
     1.8 +- #2017: download hangs with some browser plugins (PDF with Firefox for Windows)
     1.9  New internal features
    1.10  ~~~~~~~~~~~~~~~~~~~~~
    1.11  - 
     2.1 --- a/src/tramline/core.py
     2.2 +++ b/src/tramline/core.py
     2.3 @@ -202,6 +202,8 @@
     2.4      p = id_to_path(tramline_path(filter.req), file_id)
     2.5  
     2.6      log('file id:' + file_id, filter.req)
     2.7 +    if not file_id:
     2.8 +        return
     2.9      # Range request
    2.10      hin = filter.req.headers_in
    2.11      h = hin.get(TRAMLINE_RANGE_HEADER)