summaryrefslogtreecommitdiff
path: root/lib/uri/http.rb
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2021-06-25 13:38:01 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-07-27 16:54:27 +0900
commit1cf111774f03c6d1ddba735cb8cc79483f16f699 (patch)
treeb90249839fb24c0d350544eda50666e95c5d968b /lib/uri/http.rb
parent090d799c2496f4c0e1f25c9970f4015fc693ff0e (diff)
[ruby/uri] Add proper Ractor support to URI
* Using a module to map scheme name to scheme class, which also works with Ractor. * No constant redefinition, no ObjectSpace, still fast lookup for initial schemes. https://github.com/ruby/uri/commit/883567fd81
Diffstat (limited to 'lib/uri/http.rb')
-rw-r--r--lib/uri/http.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/uri/http.rb b/lib/uri/http.rb
index 70cfb2a1bfc..6e9c963ef10 100644
--- a/lib/uri/http.rb
+++ b/lib/uri/http.rb
@@ -82,6 +82,5 @@ module URI
end
end
- @@schemes['HTTP'] = HTTP
-
+ register_scheme 'HTTP', HTTP
end