const char *const headers[]={"link","default-style","content-base",0};
const char *const headers[]={"link","default-style",0};
HTMLContentSink::ProcessHTTPHeaders(nsIChannel* aChannel) {  NS_ASSERTION(aChannel,"can't process http headers without a channel");  nsresult rv=NS_OK;  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 *name=headers;      nsCAutoString tmp;      while(*name) {        rv = httpchannel->GetResponseHeader(nsDependentCString(*name), tmp);        if (NS_SUCCEEDED(rv) && !tmp.IsEmpty()) {          nsCOMPtr<nsIAtom> key(dont_AddRef(NS_NewAtom(*name)));          ProcessHeaderData(key,NS_ConvertASCIItoUCS2(tmp));        }        name++;      }//while    }//if - httpchannel   }//if - channel  return rv;}