mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-30 20:37:31 +09:00
No issue - [MailNews] Fix build bustage due to recent MIME API changes
This commit is contained in:
parent
ffe6d48af5
commit
2048f4df51
2 changed files with 5 additions and 4 deletions
|
|
@ -510,13 +510,13 @@ void Tokenizer::tokenizeHeaders(nsIUTF8StringEnumerator * aHeaderNames, nsIUTF8S
|
||||||
|
|
||||||
// extract the charset parameter
|
// extract the charset parameter
|
||||||
nsCString parameterValue;
|
nsCString parameterValue;
|
||||||
mimehdrpar->GetParameterInternal(headerValue.get(), "charset", nullptr, nullptr, getter_Copies(parameterValue));
|
mimehdrpar->GetParameterInternal(headerValue, "charset", nullptr, nullptr, getter_Copies(parameterValue));
|
||||||
addTokenForHeader("charset", parameterValue);
|
addTokenForHeader("charset", parameterValue);
|
||||||
|
|
||||||
// create a token containing just the content type
|
// 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())
|
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);
|
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?
|
// XXX: should we add a token for the entire content-type header as well or just these parts we have extracted?
|
||||||
|
|
|
||||||
|
|
@ -493,8 +493,9 @@ MimeHeaders_get_parameter (const char *header_value, const char *parm_name,
|
||||||
if (NS_FAILED(rv))
|
if (NS_FAILED(rv))
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
|
nsCString hdr_value(header_value);
|
||||||
nsCString result;
|
nsCString result;
|
||||||
rv = mimehdrpar->GetParameterInternal(header_value, parm_name, charset,
|
rv = mimehdrpar->GetParameterInternal(hdr_value, parm_name, charset,
|
||||||
language, getter_Copies(result));
|
language, getter_Copies(result));
|
||||||
return NS_SUCCEEDED(rv) ? PL_strdup(result.get()) : nullptr;
|
return NS_SUCCEEDED(rv) ? PL_strdup(result.get()) : nullptr;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue