зеркало из https://github.com/mozilla/pjs.git
added accept */* to the default http request
This commit is contained in:
Родитель
61a5c3a4c2
Коммит
42feeddf17
|
@ -66,6 +66,10 @@ nsHTTPRequest::nsHTTPRequest(nsIURI* i_pURL, HTTPMethod i_Method,
|
|||
mURI->GetHost(getter_Copies(host));
|
||||
SetHeader(nsHTTPAtoms::Host, host);
|
||||
}
|
||||
|
||||
// Send */*. We're no longer chopping MIME-types for acceptance.
|
||||
// MIME based content negotiation has died.
|
||||
SetHeader(nsHTTPAtoms::Accept, "*/*");
|
||||
}
|
||||
|
||||
nsHTTPRequest::~nsHTTPRequest()
|
||||
|
|
Загрузка…
Ссылка в новой задаче