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

Back to archive index

flyson flyso****@users*****
2006年 2月 11日 (土) 05:13:45 JST


Index: bbs2chreader/content/bbs2chreader/test/thread-test.js
diff -u bbs2chreader/content/bbs2chreader/test/thread-test.js:1.10 bbs2chreader/content/bbs2chreader/test/thread-test.js:1.11
--- bbs2chreader/content/bbs2chreader/test/thread-test.js:1.10	Sat Feb 11 05:10:01 2006
+++ bbs2chreader/content/bbs2chreader/test/thread-test.js	Sat Feb 11 05:13:45 2006
@@ -258,7 +258,7 @@
 		if(resBeID){
 			var regBeID2 = /<BE:(\d+):(\d+)>/;
 			if(resBeID.match(regBeID2)){
-				idInfoUrl = "http://be.2ch.net/test/p.php?i=" + RegExp.$1 +
+				var idInfoUrl = "http://be.2ch.net/test/p.php?i=" + RegExp.$1 +
 						"&u=d:" + this.threadURL.resolve("./") + aNumber;
 				resBeID = resBeID.replace(regBeID2, String("$1 Lv.$2").link(idInfoUrl));
 			}
@@ -299,12 +299,14 @@
 
 			// 差分GET
 		if(this.dat.datFile.exists() && this.dat.lastModified){
-			//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);
+			var lastModified = this.dat.lastModified;
+			var range = this.dat.datFile.fileSize;
+			//httpChannel.setRequestHeader("Accept-Encoding", "identity", false);
+			httpChannel.setRequestHeader("Accept-Encoding", "", false);
+			httpChannel.setRequestHeader("If-Modified-Since", lastModified, false);
+			httpChannel.setRequestHeader("Range", "bytes=" + range + "-", false);
 		}else{
-			this._channel.setRequestHeader("Accept-Encoding", "gzip", false);
+			httpChannel.setRequestHeader("Accept-Encoding", "gzip", false);
 		}
 
 		this.wrappedJSObject = this;


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