зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
1132e43737
Коммит
52d9da00b1
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче