Make cookie parsing impl work with secure=1 entry