No issue - [MailNews] Fix build bustage due to recent MIME API changes

This commit is contained in:
FranklinDM 2023-04-26 18:08:57 +08:00 • committed by roytam1
commit 2048f4df51
2 changed files with 5 additions and 4 deletions

View file

@ -510,13 +510,13 @@ void Tokenizer::tokenizeHeaders(nsIUTF8StringEnumerator * aHeaderNames, nsIUTF8S
// extract the charset parameter
nsCString parameterValue;
mimehdrpar->GetParameterInternal(headerValue.get(), "charset", nullptr, nullptr, getter_Copies(parameterValue));
mimehdrpar->GetParameterInternal(headerValue, "charset", nullptr, nullptr, getter_Copies(parameterValue));
addTokenForHeader("charset", parameterValue);
// create a token containing just the content type
mimehdrpar->GetParameterInternal(headerValue.get(), "type", nullptr, nullptr, getter_Copies(parameterValue));
mimehdrpar->GetParameterInternal(headerValue, "type", nullptr, nullptr, getter_Copies(parameterValue));
if (!parameterValue.Length())
mimehdrpar->GetParameterInternal(headerValue.get(), nullptr /* use first unnamed param */, nullptr, nullptr, getter_Copies(parameterValue));
mimehdrpar->GetParameterInternal(headerValue, nullptr /* use first unnamed param */, nullptr, nullptr, getter_Copies(parameterValue));
addTokenForHeader("content-type/type", parameterValue);
// XXX: should we add a token for the entire content-type header as well or just these parts we have extracted?