rapid7/metasploit-framework — pull request #1097 by wchen-r7 (2012-11-26 18:08:53+00:00)
Title: The 'Set-Cookie' header should be checked before accessing it

Verified by egypt about the possibility of a header being nil if not actually assigned. That condition should be checked before using it.