Skip to content

Commit

Permalink
Remove nil from lang (#16)
Browse files Browse the repository at this point in the history
GitHub: fix GH-15
  • Loading branch information
sakuro authored Mar 18, 2024
1 parent 3a58d86 commit 33e7b2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/locale/driver/cgi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 33e7b2e

Please sign in to comment.