summaryrefslogtreecommitdiff
path: root/sample/webrick/httpsd.rb
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-03-07 12:35:41 +0000
committergotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-03-07 12:35:41 +0000
commitdf2e47fe44146535a8d85d66836906643831b1d8 (patch)
treea8aa04867b65a867030415cacd39dbcced3776f2 /sample/webrick/httpsd.rb
parent24cb3707eb4abc3060e234cb0927edde3ff0b0ad (diff)
* lib/webrick/server.rb (WEBrick::GenericServer#start): should
restore @token if accept failure. suggested by Dominique Brezinski. [ruby-core:04518] * sample/webrick/httpsd.rb: fix typo in comment. suggested by Kazuhiko Shiozaki. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/webrick/httpsd.rb')
-rw-r--r--sample/webrick/httpsd.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/webrick/httpsd.rb b/sample/webrick/httpsd.rb
index 9d82ef3..a120782 100644
--- a/sample/webrick/httpsd.rb
+++ b/sample/webrick/httpsd.rb
@@ -11,8 +11,8 @@ httpd = WEBrick::HTTPServer.new(
:SSLEnable => true,
# Specify key pair and server certificate.
- # :SSLPrivateKey => OpenSSL::PKey::RSA.new("server.key"),
- # :SSLCertificate => OpenSSL::X509::Certificate.new("server.crt"),
+ # :SSLPrivateKey => OpenSSL::PKey::RSA.new(File.read("server.key")),
+ # :SSLCertificate => OpenSSL::X509::Certificate.new(File.read("server.crt")),
# specify the following SSL options if you want to use auto
# generated self-signed certificate.