したらばTOP ■掲示板に戻る■ 全部 1-100 最新50 | |
レス数が1スレッドの最大レス数(1000件)を超えています。残念ながら投稿することができません。

bbs2chreader/chaika 避難所

715名無しさん:2015/03/15(日) 01:21:13 ID:jpC9sBhc0
ありゃ改行が変になった
diffは↓ね

diff -ur 2chproxy.pl.newest 2chproxy.pl
--- 2chproxy.pl.newest 2015-03-15 01:08:29.416653190 +0900
+++ 2chproxy.pl 2015-03-15 01:12:58.372641662 +0900
@@ -15,6 +15,7 @@
use threads;
use threads::shared;
use Thread::Semaphore;
+use HTTP::Date qw/time2str/;

#注意事項
#0. LinuxのJDで動くことを想定して作っているので他の環境で動くかは分かりません
@@ -541,6 +542,10 @@
#Webスクレイピング時のdatアクセスはhtml2datを通す
if ($access_to_dat) {
&print_log(LOG_INFO, "convert html to dat.\n");
+ $response->decoded_content =~ /<input type=hidden name=time value=([^\>]*)\>/;
+ if ($1) {
+ $response->header("Last-Modified" => time2str($1 + 0));
+ }
my @content_array = &html2dat($response->decoded_content);
#206を返す場合は別の処理を行う
if ($is_partial_content) {




掲示板管理者へ連絡 無料レンタル掲示板