From 33e7b2ee353c55a93021855b28199b67c754874e Mon Sep 17 00:00:00 2001 From: OZAWA Sakuro <10973+sakuro@users.noreply.github.com> Date: Mon, 18 Mar 2024 22:18:22 +0900 Subject: [PATCH] Remove nil from lang (#16) GitHub: fix GH-15 --- lib/locale/driver/cgi.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/locale/driver/cgi.rb b/lib/locale/driver/cgi.rb index deeba53..6d99699 100644 --- a/lib/locale/driver/cgi.rb +++ b/lib/locale/driver/cgi.rb @@ -95,8 +95,8 @@ def charset def set_request(query_langs, cookie_langs, accept_language, accept_charset) Locale.clear Thread.current[:current_request] = { - :query_langs => query_langs, - :cookie_langs => cookie_langs, + :query_langs => query_langs.compact, + :cookie_langs => cookie_langs.compact, :accept_language => accept_language, :accept_charset => accept_charset }