Bug 1895198 - Add ExplicitSetUploadStreamLength to HttpChannelChild and move LoadWasOpened assert r=valentin,necko-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D209521
This commit is contained in:
Julian Descottes
2024-05-06 12:00:46 +00:00
parent 1914ac2f02
commit cc5602733a
4 changed files with 14 additions and 5 deletions

View File

@@ -1319,8 +1319,6 @@ void HttpBaseChannel::ExplicitSetUploadStreamLength(
return;
}
// SetRequestHeader propagates headers to chrome if HttpChannelChild
MOZ_ASSERT(!LoadWasOpened());
nsAutoCString contentLengthStr;
contentLengthStr.AppendInt(aContentLength);
SetRequestHeader(header, contentLengthStr, false);