1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
Tanaka Akira 8f7884761e The default charset of text/* media type is UTF-8.
Thanks for the patch  gareth (Gareth Adams).  [Bug ]

-------

Combines two small, but very related changes

1: Treat HTTPS the same as HTTP

Previously, OpenURI followed guidance in RFC2616/3.7.1:

> When no explicit charset parameter is provided by the sender, media
> subtypes of the "text" type are defined to have a default charset
> value of "ISO-8859-1" when received via HTTP.

However this RFC was written before TLS was established and OpenURI was
never updated to treat HTTPS traffic the same way. So, HTTPS documents
received a different default to HTTP documents.

This commit removes the scheme check so that all text/* documents
processed by OpenURI are treated the same way.

In theory this processing gets applied to FTP URIs too, but there's no
mechanism in OpenURI for FTP documents to have Content-Type metadata
appended to them, so this ends up being a no-op.

2: Change default charset for text/* to UTF-8

Replaces the default ISO-8859-1 charset previously defined in RFC2616 (now
obsoleted) with a UTF-8 charset as defined in RFC6838.

Fixes: https://bugs.ruby-lang.org/issues/15933
2019-07-15 09:36:52 +09:00
..
-ext-
base64
benchmark
bigdecimal
cgi
coverage
csv [ruby/csv] Fix a bug that strip: true removes newlines 2019-07-14 23:07:31 +09:00
date
dbm
digest Restore support library for only test files that are digest and csv. 2019-07-09 21:16:49 +09:00
drb
dtrace
erb Suppress uninitialized instance variable warnings 2019-07-04 18:12:08 +09:00
etc
excludes
fiddle
fileutils
gdbm
io
irb
json
lib Restore support library for only test files that are digest and csv. 2019-07-09 21:16:49 +09:00
logger Fix timezone issue for logger period's tests 2019-07-02 15:50:12 +01:00
matrix
misc
mkmf
monitor
net
nkf
objspace
open-uri The default charset of text/* media type is UTF-8. 2019-07-15 09:36:52 +09:00
openssl
optparse
ostruct
pathname Delegates 3 arguments for Pathname.glob. 2019-07-14 17:42:58 +09:00
psych
racc Clean up temporary directory for racc 2019-07-02 15:02:16 +09:00
rdoc Fix links to headings 2019-07-14 17:46:16 +09:00
readline
reline Remove unused method. 2019-07-15 00:33:16 +09:00
resolv
rexml
rinda
ripper Added assertions for Unicode escaped CHAR scanner events 2019-07-06 18:46:00 +09:00
rss
ruby Check the result of String#-@ 2019-07-14 20:56:38 +09:00
rubygems Clean up temporary expired cert file 2019-07-02 15:02:16 +09:00
scanf
sdbm
shell
socket
stringio
strscan
syslog
uri
webrick remove an unused variable. 2019-07-11 13:04:07 +09:00
win32ole Get rid of toplevel methods 2019-07-08 16:05:04 +09:00
yaml
zlib
runner.rb Fixed the wrong path for COVERAGE. 2019-07-02 08:00:29 +09:00
test_abbrev.rb
test_cmath.rb
test_delegate.rb
test_extlibs.rb
test_find.rb
test_forwardable.rb
test_history.rb Rename to Reline::History::Test. 2019-07-15 00:18:10 +09:00
test_ipaddr.rb
test_mutex_m.rb
test_observer.rb
test_open3.rb Restore support library for only test files. 2019-07-09 21:04:07 +09:00
test_pp.rb
test_prettyprint.rb
test_prime.rb
test_pstore.rb
test_pty.rb
test_rbconfig.rb
test_securerandom.rb
test_set.rb
test_shellwords.rb
test_singleton.rb
test_sync.rb
test_syslog.rb
test_tempfile.rb
test_time.rb
test_timeout.rb
test_tmpdir.rb
test_tracer.rb
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb
test_win32api.rb