aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/webrick.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v3/webrick.rb')
-rw-r--r--lib/sisu/v3/webrick.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sisu/v3/webrick.rb b/lib/sisu/v3/webrick.rb
index fbe5bda3..55157c4f 100644
--- a/lib/sisu/v3/webrick.rb
+++ b/lib/sisu/v3/webrick.rb
@@ -64,15 +64,15 @@ def brick(port,get='')
port=SiSU_Env::Info_port.new.webrick
begin
s=HTTPServer.new(
- :Port => port,
- :DocumentRoot => Dir::pwd + '/htdocs',
- :CGIPathEnv => ENV['PATH']
+ Port: port,
+ DocumentRoot: Dir::pwd + '/htdocs',
+ CGIPathEnv: ENV['PATH']
)
cgi_dir=File.expand_path(cgidir)
@mount.each { |x,y| # mount subdirectories
s.mount(x, HTTPServlet::FileHandler, y, true)
}
- s.mount('/cgi-bin', HTTPServlet::FileHandler, cgi_dir, {:FancyIndexing=>true})
+ s.mount('/cgi-bin', HTTPServlet::FileHandler, cgi_dir, { FancyIndexing: true })
trap("INT"){ s.shutdown }
s.start
rescue; SiSU_Errors::Info_error.new($!,$@,'-W',nil).error #fix