not in SeaMonkey pull. added toLowerCase() on the header passed into the GetHeader() method so we're comparing like case strings. also made the ExamineREsponse call syncronous until the proxy object problems are worked out.

This commit is contained in:
valeski%netscape.com 1999-06-24 01:12:16 +00:00
Родитель 1132e43737
Коммит 52d9da00b1
2 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -498,7 +498,10 @@ nsHTTPResponse::GetHeader(const char* i_Header, char* *o_Value)
if (!i_Header || !o_Value)
return NS_ERROR_NULL_POINTER;
nsIAtom* header = NS_NewAtom(i_Header);
nsAutoString lowerHeader(i_Header);
lowerHeader.ToLowerCase();
nsIAtom* header = NS_NewAtom(lowerHeader);
if (!header)
return NS_ERROR_OUT_OF_MEMORY;

Просмотреть файл

@ -271,7 +271,9 @@ nsresult nsHTTPResponseListener::FireOnHeadersAvailable()
*lCID,
nsnull,
nsIHTTPNotify::GetIID(),
PROXY_ASYNC,
/* XXX needs to be async */
/*PROXY_ASYNC,*/
PROXY_SYNC,
(void**)&pNotify);
NS_RELEASE(proxyObjectManager);