fix bug 94096 [Content-Base Header should not be supported] remove

support for header that was only part of a draft for http 1.1,
r=harishd, sr=jst, a=scc


git-svn-id: svn://10.0.0.236/trunk@117220 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
andreas.otte%debitel.net
2002-03-22 21:24:48 +00:00
parent 3aa931270e
commit 6151a1f374
3 changed files with 1 additions and 6 deletions

View File

@@ -164,7 +164,6 @@ HTML_ATOM(h4, "h4")
HTML_ATOM(h5, "h5")
HTML_ATOM(h6, "h6")
HTML_ATOM(head, "head")
HTML_ATOM(headerContentBase, "content-base")
HTML_ATOM(headerContentLanguage, "content-language")
HTML_ATOM(headerContentScriptType, "content-script-type")
HTML_ATOM(headerContentStyleType, "content-style-type")

View File

@@ -4660,7 +4660,7 @@ HTMLContentSink::ProcessHTTPHeaders(nsIChannel* aChannel) {
if(aChannel) {
nsCOMPtr<nsIHttpChannel> httpchannel(do_QueryInterface(aChannel));
if (httpchannel) {
const char *const headers[]={"link","default-style","content-base",0}; // add more http headers if you need
const char *const headers[]={"link","default-style",0}; // add more http headers if you need
const char *const *name=headers;
nsCAutoString tmp;
@@ -4740,9 +4740,6 @@ HTMLContentSink::ProcessHeaderData(nsIAtom* aHeader,const nsAReadableString& aVa
else if (aHeader == nsHTMLAtoms::link) {
rv = ProcessLink(aContent, aValue);
}
else if (aHeader == nsHTMLAtoms::headerContentBase) {
ProcessBaseHref(aValue);
}
else if (mParser) {
// we also need to report back HTTP-EQUIV headers to the channel
// so that it can process things like pragma: no-cache or other

View File

@@ -164,7 +164,6 @@ HTML_ATOM(h4, "h4")
HTML_ATOM(h5, "h5")
HTML_ATOM(h6, "h6")
HTML_ATOM(head, "head")
HTML_ATOM(headerContentBase, "content-base")
HTML_ATOM(headerContentLanguage, "content-language")
HTML_ATOM(headerContentScriptType, "content-script-type")
HTML_ATOM(headerContentStyleType, "content-style-type")