Bug 216940 - mailnews channels violate nsIChannel api (contentType)

Also fixes 216939
Patch by Christian Biesinger <cbiesinger@web.de>
r=bienvenu@nventure.com
sr=darin@meer.net
a=mkaply@us.ibm.com


git-svn-id: svn://10.0.0.236/trunk@146272 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
caillon%returnzero.com
2003-08-22 19:14:22 +00:00
parent f2f3e5e175
commit aa2d2e33dd
2 changed files with 4 additions and 4 deletions

View File

@@ -576,8 +576,8 @@ NS_IMETHODIMP nsMsgProtocol::GetContentType(nsACString &aContentType)
NS_IMETHODIMP nsMsgProtocol::SetContentType(const nsACString &aContentType)
{
m_ContentType = aContentType;
return NS_OK;
nsCAutoString charset;
return NS_ParseContentType(aContentType, m_ContentType, charset);
}
NS_IMETHODIMP nsMsgProtocol::GetContentCharset(nsACString &aContentCharset)

View File

@@ -8058,8 +8058,8 @@ NS_IMETHODIMP nsImapMockChannel::GetContentType(nsACString &aContentType)
NS_IMETHODIMP nsImapMockChannel::SetContentType(const nsACString &aContentType)
{
m_ContentType = aContentType;
return NS_OK;
nsCAutoString charset;
return NS_ParseContentType(aContentType, m_ContentType, charset);
}
NS_IMETHODIMP nsImapMockChannel::GetContentCharset(nsACString &aContentCharset)