зеркало из https://github.com/mozilla/gecko-dev.git
CHECKIN NOT ON MAIN PULL: removed the cookie module dependency on the HTTPResponse interface.
This commit is contained in:
Родитель
53ea579cb6
Коммит
12f496346a
|
@ -19,7 +19,6 @@
|
|||
#include <stdio.h>
|
||||
#include "nsCookieHTTPNotify.h"
|
||||
#include "nsIHTTPChannel.h"
|
||||
#include "nsIHTTPResponse.h"
|
||||
#include "nsCookie.h"
|
||||
#include "nsIURL.h"
|
||||
#include "nsCRT.h"
|
||||
|
@ -186,14 +185,12 @@ nsCookieHTTPNotify::AsyncExamineResponse(nsISupports *aContext)
|
|||
return rv;
|
||||
}
|
||||
|
||||
nsIHTTPResponse *pHTTPResponse;
|
||||
rv = pHTTPConnection->QueryInterface(nsIHTTPResponse::GetIID(), (void **)&pHTTPResponse);
|
||||
if (NS_SUCCEEDED(rv) && nsnull != pHTTPResponse) {
|
||||
char *pDate;
|
||||
char *pDate = nsnull;
|
||||
rv = pHTTPConnection->GetResponseHeader("Date", &pDate);
|
||||
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
if(pDate) {
|
||||
pHTTPResponse->GetDate(&pDate);
|
||||
NET_SetCookieStringFromHttp(url, cookie, pDate);
|
||||
NS_RELEASE(pHTTPResponse);
|
||||
nsCRT::free(pDate);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче