Show
Ignore:
Timestamp:
04/25/08 21:55:20 (6 years ago)
Author:
drry
Message:
  • より堅牢に。
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • websites/idavailability/retriever.cgi

    r10450 r10458  
    1010cond = cgi['cond'] 
    1111 
    12 response = Net::HTTP.start(url.to_s) do |http| 
    13   res = http.get(url.path, 'User-Agent' => 'IDAvailabilityRetriever/1.0') 
     12response = Net::HTTP.start(url.host, url.port) do |http| 
     13  res = http.get(url.request_uri, 'User-Agent' => 'IDAvailabilityRetriever/1.0') 
    1414  unless res.is_a?(Net::HTTPSuccess) 
    1515    print 'null'