respect content-style-type HTTP header and support the <meta> tag in

XML.  Bug 161268, r=peterv, sr=dbaron.
This commit is contained in:
bzbarsky%mit.edu 2002-08-06 13:51:48 +00:00
parent 5e339bca9e
commit 567fd42683
2 changed files with 14 additions and 2 deletions

View File

@ -4503,7 +4503,12 @@ HTMLContentSink::ProcessHTTPHeaders(nsIChannel* aChannel) {
if(aChannel) {
nsCOMPtr<nsIHttpChannel> httpchannel(do_QueryInterface(aChannel));
if (httpchannel) {
const char *const headers[]={"link","default-style",0}; // add more http headers if you need
const char *const headers[] = {
"link",
"default-style",
"content-style-type",
// add more http headers if you need
0};
const char *const *name=headers;
nsCAutoString tmp;

View File

@ -932,6 +932,8 @@ nsXMLContentSink::ProcessHeaderData(nsIAtom* aHeader,const nsAString& aValue,nsI
nsresult rv=NS_OK;
// XXX necko isn't going to process headers coming in from the parser
//NS_WARNING("need to fix how necko adds mime headers (in HTMLContentSink::ProcessMETATag)");
mDocument->SetHeaderData(aHeader, aValue);
// see if we have a refresh "header".
if (aHeader == nsHTMLAtoms::refresh) {
@ -1035,7 +1037,12 @@ nsXMLContentSink::ProcessHTTPHeaders(nsIChannel* aChannel) {
if(aChannel) {
nsCOMPtr<nsIHttpChannel> httpchannel(do_QueryInterface(aChannel));
if (httpchannel) {
const char *const headers[]={"link","default-style",0}; // add more http headers if you need
const char *const headers[] = {
"link",
"default-style",
"content-style-type",
// add more http headers if you need
0};
const char *const *name=headers;
nsCAutoString tmp;