mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-10 13:54:27 +00:00
bug 248810 nsIStreamConverter[Service] uses wide strings for mime types
r+sr=darin
This commit is contained in:
parent
fc13cd9a96
commit
89cc838eb0
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user