Changeset 1008
- Timestamp:
- 07/31/08 04:24:05 (1 month ago)
- Files:
-
- branches/1.0.x/chrome/content/dta/manager.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0.x/chrome/content/dta/manager.js
r1007 r1008 592 592 fileName: null, 593 593 acceptRanges: 'bytes', 594 content length: 0,594 contentLength: 0, 595 595 time: null, 596 596 … … 628 628 629 629 case 'content-length': 630 let content length = new Number(aValue);630 let contentLength = new Number(aValue); 631 631 if (contentLength > 0 && !isNaN(contentLength)) { 632 this.contentlength = Math.floor(contentLength); 632 this.contentLength = Math.floor(contentLength); 633 Debug.dump("cl: " + contentLength); 633 634 } 634 635 break; 635 636 636 637 case 'content-range': { 637 let c l= new Number(aValue.split('/').pop());638 if (c l > 0) {639 this.content length = cl;638 let contentLength = new Number(aValue.split('/').pop()); 639 if (contentLength > 0 && !isNan(contentLength)) { 640 this.contentLength = Math.floor(contentLength); 640 641 } 641 642 } … … 985 986 get totalSize() { return this._totalSize; }, 986 987 set totalSize(nv) { 987 if (this._total size == nv) {988 if (this._totalSize == nv) { 988 989 return nv; 989 990 } … … 2024 2025 } 2025 2026 2026 if (visitor.content length > 0) {2027 d.totalSize = visitor.content length;2027 if (visitor.contentLength > 0) { 2028 d.totalSize = visitor.contentLength; 2028 2029 } 2029 2030 else {
