зеркало из https://github.com/mozilla/gecko-dev.git
replaced a call to nsIHTTPChannel::GetResponseHeader(...) with a call to nsIChannel::GetContentType(...)
This commit is contained in:
Родитель
99fcffe580
Коммит
87e871a39c
|
@ -144,7 +144,7 @@ TestHTTPEventSink::OnHeadersAvailable(nsISupports* context)
|
|||
if (pHTTPCon) {
|
||||
char* type;
|
||||
//optimize later TODO allow atoms here...! intead of just the header strings
|
||||
pHTTPCon->GetResponseHeader("Content-type", &type);
|
||||
pHTTPCon->GetContentType(&type);
|
||||
if (type) {
|
||||
printf("\nRecieving ... %s\n", type);
|
||||
nsCRT::free(type);
|
||||
|
|
Загрузка…
Ссылка в новой задаче