{"issue":{"state":"closed","created_at":"2011-08-23T14:44:40Z","updated_at":"2011-11-29T18:35:40Z","user":{"gravatar_id":"16722dcdef9478b025af13f0a638bec4","id":4512,"url":"https://api.github.com/users/codesnik","avatar_url":"https://secure.gravatar.com/avatar/16722dcdef9478b025af13f0a638bec4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"codesnik"},"comments":14,"body":"this causes a problem in rails:  https://github.com/rails/rails/issues/2622\r\n\r\nI'm not really sure, which side should be fixed, and how. Should rails catch that exception? then probably using plain ArgumentError isn't specific enough.\r\n\r\nany ideas?","assignee":null,"number":225,"id":1466882,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"\"invalid %-encoding\" error leaves rack.request.cookie_hash == nil","closed_at":"2011-08-23T15:35:58Z","html_url":"https://github.com/rack/rack/issues/225","url":"https://api.github.com/repos/rack/rack/issues/225","milestone":null},"action":"created","comment":{"created_at":"2011-11-29T18:35:40Z","updated_at":"2011-11-29T18:35:40Z","user":{"gravatar_id":"8b0df8ec9ce59662e0efb76b239401ea","id":115397,"url":"https://api.github.com/users/cailinanne","avatar_url":"https://secure.gravatar.com/avatar/8b0df8ec9ce59662e0efb76b239401ea?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"cailinanne"},"body":"If you are looking for an immediate workaround solution and you are using Apache, you can use the Apache Headers module to edit the problematic cookie before it is passed on to Rack.  To do this:\r\n\r\n1. Enable the headers module (sudo a2enmode)\r\n2. Add the following to the your Apache config\r\n\r\n    RequestHeader edit Cookie \"You've%20Got%20%%BALANCE%%!%20\" \"BALANCE\"\r\n\r\nor, more generically \r\n\r\n    RequestHeader edit Cookie \"problem_value\" \"new_value\"\r\n\r\nThe specific example cleans up one particular campaign that was driving me insane, but I believe that both `problem_value` and `new_value` could be more generic regular expressions as well.\r\n\r\nSee full documentation in the RequestHeader directive section here: http://httpd.apache.org/docs/current/mod/mod_headers.html","id":2940576,"url":"https://api.github.com/repos/rack/rack/issues/comments/2940576"}}