Bug 656251: remove verbosity in Accept header for fetching XSLTs, r=sicking
authorjulian.reschke@gmx.de
Mon, 08 Aug 2011 04:52:00 -0700
changeset 76873 f1820278311e813be0753cbb6099ac34ffec8d22
parent 76872 466991fdc0f7393997c675cf89d68c122ddd99c1
child 76874 8c019af725cfa69ebb8fa700aeac3168634853b1
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewerssicking
bugs656251
milestone9.0a1
Bug 656251: remove verbosity in Accept header for fetching XSLTs, r=sicking
content/xslt/src/xslt/txMozillaStylesheetCompiler.cpp
--- a/content/xslt/src/xslt/txMozillaStylesheetCompiler.cpp
+++ b/content/xslt/src/xslt/txMozillaStylesheetCompiler.cpp
@@ -493,17 +493,17 @@ txCompileObserver::startLoad(nsIURI* aUr
 
     channel->SetLoadGroup(mLoadGroup);
 
     channel->SetContentType(NS_LITERAL_CSTRING("text/xml"));
 
     nsCOMPtr<nsIHttpChannel> httpChannel(do_QueryInterface(channel));
     if (httpChannel) {
         httpChannel->SetRequestHeader(NS_LITERAL_CSTRING("Accept"),
-                                      NS_LITERAL_CSTRING("text/xml,application/xml,application/xhtml+xml,application/xslt+xml,*/*;q=0.1"),
+                                      NS_LITERAL_CSTRING("*/*"),
                                       PR_FALSE);
 
         nsCOMPtr<nsIURI> referrerURI;
         aReferrerPrincipal->GetURI(getter_AddRefs(referrerURI));
         if (referrerURI) {
             httpChannel->SetReferrer(referrerURI);
         }
     }