[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Debian JP master SVN www commits (rev.475)
=======================================================
Repository: /org/svn.debian.or.jp/repos
Revision: 475
Commiter: kmuto
Date: 2007-10-03 13:36:07 +0900 (水, 03 10月 2007)
=======================================================
Log:
specified an agent name
=======================================================
Changed:
U cdn/check-surrogates.rb
Modified: cdn/check-surrogates.rb
===================================================================
--- cdn/check-surrogates.rb 2007-10-03 04:16:34 UTC (rev 474)
+++ cdn/check-surrogates.rb 2007-10-03 04:36:07 UTC (rev 475)
@@ -26,7 +26,7 @@
h = Net::HTTP.new(host, port)
h.open_timeout = 8
h.read_timeout = 8
- case response = h.head("/debian/project/trace/#{tracefile}", nil)
+ case response = h.head("/debian/project/trace/#{tracefile}", {"User-Agent"=> "Debian-cdn-mirror-ping/1.0"})
when Net::HTTPSuccess
if first_surrogate
@last_modified = Time.parse(response['last-modified'])