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:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user