mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-29 21:25:35 +00:00
Fix for 12702. cookies work again.
This commit is contained in:
parent
b999fd558c
commit
02c9ac8e9a
@ -184,7 +184,14 @@ PRInt32 nsHTTPHeaderArray::GetEntry(nsIAtom* aHeader, nsHeaderEntry** aResult)
|
||||
|
||||
entry = mHTTPHeaders->ElementAt(i);
|
||||
element = NS_STATIC_CAST(nsHeaderEntry*, entry);
|
||||
if (aHeader == element->mAtom.get()) {
|
||||
|
||||
PRUnichar* aHeaderString;
|
||||
PRUnichar* elementString;
|
||||
aHeader->GetUnicode( &aHeaderString );
|
||||
element->mAtom.get()->GetUnicode( &elementString );
|
||||
|
||||
if (nsCRT::strcmp(aHeaderString, elementString) == 0)
|
||||
{
|
||||
*aResult = element;
|
||||
NS_ADDREF(*aResult);
|
||||
return i;
|
||||
|
Loading…
Reference in New Issue
Block a user