bug 248810 nsIStreamConverter[Service] uses wide strings for mime types

r+sr=darin
This commit is contained in:
cbiesinger%web.de 2005-11-02 07:42:19 +00:00
parent fc13cd9a96
commit 89cc838eb0

View File

@ -312,10 +312,9 @@ txStylesheetSink::OnStartRequest(nsIRequest *aRequest, nsISupports *aContext)
nsCOMPtr<nsIStreamConverterService> serv =
do_GetService("@mozilla.org/streamConverters;1", &rv);
if (NS_SUCCEEDED(rv)) {
NS_ConvertASCIItoUCS2 from(UNKNOWN_CONTENT_TYPE);
nsCOMPtr<nsIStreamListener> converter;
rv = serv->AsyncConvertData(from.get(),
NS_LITERAL_STRING("*/*").get(),
rv = serv->AsyncConvertData(UNKNOWN_CONTENT_TYPE,
"*/*",
mListener,
aContext,
getter_AddRefs(converter));