[Bbs2ch-cvs 88] CVS update: bbs2chreader/content/bbs2chreader/test

Back to archive index

flyson flyso****@users*****
2006年 2月 9日 (木) 22:23:22 JST


Index: bbs2chreader/content/bbs2chreader/test/thread-test.js
diff -u bbs2chreader/content/bbs2chreader/test/thread-test.js:1.8 bbs2chreader/content/bbs2chreader/test/thread-test.js:1.9
--- bbs2chreader/content/bbs2chreader/test/thread-test.js:1.8	Wed Nov 30 01:06:44 2005
+++ bbs2chreader/content/bbs2chreader/test/thread-test.js	Thu Feb  9 22:23:22 2006
@@ -297,12 +297,15 @@
 		httpChannel.loadFlags = httpChannel.LOAD_BYPASS_CACHE;
 		httpChannel.setRequestHeader("User-Agent", this._bbs2chService.userAgent, false);
 
-			// 差分GET
-		if(this.dat.datFile.exists() && this.dat.lastModified){
-			httpChannel.setRequestHeader("Accept-Encoding", "identity", false);
-			httpChannel.setRequestHeader("If-Modified-Since", this.dat.lastModified, false);
-			httpChannel.setRequestHeader("Range", "bytes=" + this.dat.datFile.fileSize + "-", false);
-		}
+				// 差分GET
+			if(aRange && aModifiedSince){
+				//this._channel.setRequestHeader("Accept-Encoding", "identity", false);
+				this._channel.setRequestHeader("Accept-Encoding", "", false);
+				this._channel.setRequestHeader("If-Modified-Since", aModifiedSince, false);
+				this._channel.setRequestHeader("Range", "bytes=" + aRange + "-", false);
+			}else{
+				this._channel.setRequestHeader("Accept-Encoding", "gzip", false);
+			}
 
 		this.wrappedJSObject = this;
 		httpChannel.asyncOpen(this, null);


bbs2ch-cvs メーリングリストの案内
Back to archive index