{"action":"closed","issue":{"url":"https://api.github.com/repos/ai/r18n/issues/128","labels_url":"https://api.github.com/repos/ai/r18n/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/ai/r18n/issues/128/comments","events_url":"https://api.github.com/repos/ai/r18n/issues/128/events","html_url":"https://github.com/ai/r18n/issues/128","id":97209566,"number":128,"title":"?locale=&v=1, if params[:locale] will return true??","user":{"login":"luoguanzhong","id":2560447,"avatar_url":"https://avatars.githubusercontent.com/u/2560447?v=3","gravatar_id":"","url":"https://api.github.com/users/luoguanzhong","html_url":"https://github.com/luoguanzhong","followers_url":"https://api.github.com/users/luoguanzhong/followers","following_url":"https://api.github.com/users/luoguanzhong/following{/other_user}","gists_url":"https://api.github.com/users/luoguanzhong/gists{/gist_id}","starred_url":"https://api.github.com/users/luoguanzhong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luoguanzhong/subscriptions","organizations_url":"https://api.github.com/users/luoguanzhong/orgs","repos_url":"https://api.github.com/users/luoguanzhong/repos","events_url":"https://api.github.com/users/luoguanzhong/events{/privacy}","received_events_url":"https://api.github.com/users/luoguanzhong/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-25T08:53:24Z","updated_at":"2015-10-28T21:48:29Z","closed_at":"2015-10-28T21:48:29Z","body":"I use `sinatra-r18n-2.0.4`, the code:\r\n\r\n```\r\nlocales = ::R18n::I18n.parse_http(request.env['HTTP_ACCEPT_LANGUAGE'])\r\nif params[:locale]\r\n  locales.insert(0, params[:locale])\r\nelsif session[:locale]\r\n  locales.insert(0, session[:locale])\r\nend\r\n```\r\n\r\nWhen the request url `?locale=&v=1`, the code `locales.insert(0, params[:locale])` also be invoked.\r\n\r\n@ai, excuse me, but  what's the situation?\r\n"}}