rack/rack — pull request #314 by goosmurf (2012-01-16 06:16:36+00:00)
Title: Fix crash when Rack::Session::Cookie value does not contain "--" delimiter

Previously if the signed cookie value was missing "--" this line would result in two nil values:
session_data, digest = session_data.split("--")

When session_data and digest are passed through to generate_hmac() and subsequently OpenSSL::HMAC::hexdigest() the latter method would raise "TypeError: can't convert nil into String".

This is my first pull request in a long time so feedback would be very welcome, thanks!