PyukiWiki CVS Commit
pyuki****@lists*****
2012年 3月 5日 (月) 10:22:23 JST
Index: PyukiWiki-Devel/lib/urlhack.inc.pl diff -u PyukiWiki-Devel/lib/urlhack.inc.pl:1.492 PyukiWiki-Devel/lib/urlhack.inc.pl:1.493 --- PyukiWiki-Devel/lib/urlhack.inc.pl:1.492 Mon Mar 5 10:14:43 2012 +++ PyukiWiki-Devel/lib/urlhack.inc.pl Mon Mar 5 10:22:22 2012 @@ -1,6 +1,6 @@ ###################################################################### # urlhack.inc.pl - This is PyukiWiki, yet another Wiki clone. -# $Id: urlhack.inc.pl,v 1.492 2012/03/05 01:14:43 papu Exp $ +# $Id: urlhack.inc.pl,v 1.493 2012/03/05 01:22:22 papu Exp $ # # "PyukiWiki" version 0.2.0-p2 $$ # Author: Nanami http://nanakochi.daiba.cx/ @@ -70,8 +70,6 @@ # robots.txt 書き換え $urlhack::robots_txt=<<EOM if(!defined($urlhack::robots_txt)); -Content-type: text/plain - User-agent: * Allow: / Crawl-delay: 10 @@ -322,6 +320,7 @@ sub plugin_urlhack_decode { my($str)=@_; if($str eq "robots.txt") { + print &http_header("Content-type: text/plain"); print $urlhack::robots_txt; exit; }