1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/webrick
Kazuhiro NISHIYAMA 6fe1919486
Fix failure on mswin CI
https://rubyci.org/logs/mswinci.japaneast.cloudapp.azure.com/vc12-x64/ruby-master/log/20200619T054159Z.fail.html.gz
```
  1) Failure:
WEBrick::TestFileHandler#test_cjk_in_path [D:/tmp/mswin-build20200619-14304-utgij/ruby/test/webrick/utils.rb:72]:
exceptions on 2 threads:
webrick log start:
  [2020-06-19 16:28:42] ERROR `/あ.txt' not found.

webrick log end
Filesystem encoding is Windows-31J.
<"200"> expected but was
<"404">.
---
<[]> expected but was
<["[2020-06-19 16:28:42] ERROR `/\xE3\x81\x82.txt' not found.\n"]>.
```

`prevent_directory_traversal` treats `path_info` as filesystem encoding.
So path_info should be filesystem encoding in request URL.

On some environments, fallback to ASCII-8BIT when EncodingError.
2020-06-19 20:13:22 +09:00
..
httpauth Loop with String#scan without creating substrings 2019-10-01 19:19:56 +09:00
httpservlet Fix failure on mswin CI 2020-06-19 20:13:22 +09:00
.document
accesslog.rb [ruby/webrick] Don't check tainting in access log escaping 2019-10-24 19:47:29 +09:00
cgi.rb
compat.rb
config.rb
cookie.rb
htmlutils.rb
httpauth.rb
httpproxy.rb [ruby/webrick] Extract creation of Net::HTTP in httpproxy 2020-06-11 13:37:24 +09:00
httprequest.rb [ruby/webrick] Support literal IPv6 addresses in X-Forwarded-Host 2019-10-24 19:47:20 +09:00
httpresponse.rb [ruby/webrick] Enabled chunked encoding if Transfer-Encoding: chunked header is set 2019-11-30 17:50:13 +09:00
https.rb
httpserver.rb
httpservlet.rb
httpstatus.rb
httputils.rb [ruby/webrick] Remove the squishing of whitespace in header values 2019-10-24 19:47:10 +09:00
httpversion.rb
log.rb
server.rb
ssl.rb webrick/ssl: More keyUsage for self-signed certs 2020-04-03 00:49:12 +09:00
utils.rb
version.rb [ruby/webrick] Bump version to 1.6.0 2019-11-30 17:49:10 +09:00
webrick.gemspec Redmine /projects/ruby-trunk is now redirected 2019-12-31 22:06:19 -08:00