* io.c (rb_open_file): encoding in mode string was ignored if perm is
[ruby-svn.git] / sample / webrick / hello.cgi
blob35d2240df0f36d3a6f3efd4e1158c4283bb28944
1 #!/usr/bin/env ruby
2 require "webrick/cgi"
4 class HelloCGI < WEBrick::CGI
5 def do_GET(req, res)
6 res["content-type"] = "text/plain"
7 res.body = "Hello, world.\n"
8 end
9 end
11 HelloCGI.new.start