Changeset 2694 for lang/ruby/ssb

Show
Ignore:
Timestamp:
12/07/07 05:01:15 (13 months ago)
Author:
coji
Message:

lang/ruby/ssb: added favicon.ico

Location:
lang/ruby/ssb/trunk
Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/ssb/trunk/libs/ssb.rb

    r2526 r2694  
    3939 
    4040    def log(request_method, query, user_agent, uid) 
    41       open(File.join(SSB::CONFIG[:home_dir], 'logs', 'browser.log'), 'a+') do |log| 
    42         now = Time.now 
    43         log.print now 
    44         log.print "\t", request_method, "\t", query, "\t", user_agent, "\t", uid, "\n" 
     41      open(File.join(SSB::CONFIG[:home_dir], 'logs', 'browser.log'), 'a+') do |out| 
     42        out.puts [Time.now, request_method, query, user_agent, uid].join("\t") 
    4543      end 
    4644    end 
  • lang/ruby/ssb/trunk/ssb-webrick.rb

    r2404 r2694  
    3737    srv.mount("/#{x}/", WEBrick::HTTPServlet::FileHandler, File.join(docroot, x)) 
    3838} 
     39srv.mount_proc('/favicon.ico'){|req,res|} 
    3940srv.start 
    4041