diff --git a/netwerk/protocol/ftp/src/nsFTPChannel.cpp b/netwerk/protocol/ftp/src/nsFTPChannel.cpp index e35b90d2ae1c..cc1fb3de3d62 100644 --- a/netwerk/protocol/ftp/src/nsFTPChannel.cpp +++ b/netwerk/protocol/ftp/src/nsFTPChannel.cpp @@ -428,15 +428,8 @@ nsFTPChannel::OnStatus(nsIRequest *request, nsISupports *aContext, if (!mEventSink) return NS_OK; - nsAutoString str; - if (mProxyChannel) { - if (aStatusArg) { - str.Append(aStatusArg); - str.AppendWithConversion("\n"); - } - str.AppendWithConversion(mHost); - } - return mEventSink->OnStatus(this, aContext, aStatus, str.GetUnicode()); + return mEventSink->OnStatus(this, aContext, aStatus, + NS_ConvertASCIItoUCS2(mHost).get()); } NS_IMETHODIMP