From c1461c927b123468ba83713676dcda48e51c8ec1 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Sun, 20 Dec 2020 04:09:40 +0900 Subject: [PATCH] cgi/escape is ractor-safe --- ext/cgi/escape/escape.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/cgi/escape/escape.c b/ext/cgi/escape/escape.c index 47188819cd..77627e2f03 100644 --- a/ext/cgi/escape/escape.c +++ b/ext/cgi/escape/escape.c @@ -388,6 +388,10 @@ cgiesc_unescape(int argc, VALUE *argv, VALUE self) void Init_escape(void) { +#if HAVE_RB_EXT_RACTOR_SAFE + rb_ext_ractor_safe(true); +#endif + id_accept_charset = rb_intern_const("@@accept_charset"); InitVM(escape); }