Added a sanity check to header parsing so we don't get an exception with malformed headers. ( To test malformed headers: http://twop.com  )
Added a sanity check to header parsing so we don't get an exception with malformed headers.
( To test malformed headers: http://twop.com  )

--HG--
extra : rebase_source : 87ee32c20e9118b4397a8239e4b2ff2b1bafed3a

runeh/dragonfly-stp-1,runeh/dragonfly-stp-1,runeh/dragonfly-stp-1