From 42feeddf17455d5afc440dec35747221240f5780 Mon Sep 17 00:00:00 2001 From: "valeski%netscape.com" Date: Fri, 10 Sep 1999 18:32:02 +0000 Subject: [PATCH] added accept */* to the default http request --- netwerk/protocol/http/src/nsHTTPRequest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/netwerk/protocol/http/src/nsHTTPRequest.cpp b/netwerk/protocol/http/src/nsHTTPRequest.cpp index f275061373b..d5e87b9597e 100644 --- a/netwerk/protocol/http/src/nsHTTPRequest.cpp +++ b/netwerk/protocol/http/src/nsHTTPRequest.cpp @@ -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()