Changeset 1111

Show
Ignore:
Timestamp:
2008-10-08 18:19:44 (1 month ago)
Author:
MaierMan
Message:

Fix accept-ranges handling

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/chrome/content/dta/manager.js

    r1110 r1111  
    756756function HttpVisitor() { 
    757757        Visitor.apply(this, arguments); 
     758        // assume ranges are accepted unless indicated otherwise 
     759        this.acceptRanges = true; 
    758760} 
    759761 
     
    796798 
    797799                                case 'accept-ranges': 
    798                                         this.acceptRanges = aValue.toLowerCase().indexOf('none') == -1; 
     800                                        this.acceptRanges = aValue.toLowerCase().indexOf('bytes') != -1; 
    799801                                        Debug.logString("acceptrange = " + aValue.toLowerCase()); 
    800802                                break;