- Timestamp:
- 09/19/08 21:10:15 (2 months ago)
- Location:
- lang/ruby/citrus/trunk/plugins
- Files:
-
- 3 modified
-
aa.rb (modified) (1 diff)
-
auto_uri_escape.rb (modified) (1 diff)
-
http/default.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/citrus/trunk/plugins/aa.rb
r6624 r19622 59 59 begin 60 60 r = http.get("/?quality=8&size=8&color=on&html=1&url=#{URI.encode(keyword, /[^-.!~*'()\w]/n)}") 61 case r .code.to_i62 when 20061 case r 62 when Net::HTTPOK # 200 63 63 xml = Hpricot(r.body) 64 64 m = xml.at('pre').inner_html -
lang/ruby/citrus/trunk/plugins/auto_uri_escape.rb
r6866 r19622 45 45 res = http.head uri.request_uri, { 'User-Agent' => @ua } 46 46 end 47 case res .code.to_i48 when 200 .. 29947 case res 48 when Net::HTTPSuccess # 2xx 49 49 uri.to_s 50 when 300 .. 39950 when Net::HTTPRedirection # 3xx 51 51 return uri.to_s unless res.key?('Location') 52 52 follow_uri(res['Location'], limit - 1) -
lang/ruby/citrus/trunk/plugins/http/default.rb
r8897 r19622 33 33 r = http.head(uri.request_uri, headers) 34 34 log r.code.inspect 35 case r .code.to_i36 when 20035 case r 36 when Net::HTTPOK # 200 37 37 case r["Content-Type"] 38 38 when /html/ … … 50 50 end 51 51 end 52 when 40152 when Net::HTTPUnauthorized # 401 53 53 realm = r["WWW-Authenticate"][/Basic realm="([^"]+)"/, 1] 54 54 auth = (@parent.config["http_auth"] || []).find {|e| e["host"] == uri.host and e["realm"] == realm } … … 59 59 ret = realm 60 60 end 61 when 300 .. 39961 when Net::HTTPRedirection # 300 .. 399 62 62 loc = URI(r["Location"]) 63 63 loc = uri + loc if loc.relative?
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)