From 78d4eace02c3c03b65d775a3bb7537f2a6e8c6e7 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Fri, 19 Jun 2020 22:08:19 +0900 Subject: Do not change local_path encoding in WEBrick::HTTPServlet::DefaultFileHandler This reverts 750203c514e0e9a49f7d53fb54084e6844fca42a and 93e6fa1d319d19ce7fba37e4b9924862447b9f38 --- lib/webrick/httpservlet/filehandler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/webrick/httpservlet/filehandler.rb b/lib/webrick/httpservlet/filehandler.rb index f41a5b07cf..f67d416b72 100644 --- a/lib/webrick/httpservlet/filehandler.rb +++ b/lib/webrick/httpservlet/filehandler.rb @@ -36,7 +36,7 @@ module WEBrick def initialize(server, local_path) super(server, local_path) - @local_path = local_path.dup.force_encoding("UTF-8") + @local_path = local_path end # :stopdoc: -- cgit v1.2.3