This is an automated email from the git hooks/post-receive script.
pierov pushed a commit to branch geckoview-99.0.1-11.0-1 in repository tor-browser.
commit c1347916f54ef933a52017e6f44bf0f7fa31ce3b Author: Emilio Cobos Álvarez emilio@crisal.io AuthorDate: Thu Jan 13 18:04:17 2022 +0000
Bug 1749957 - Fix parsing of content-length http3 header. r=dragana,kershaw a=RyanVM,dsmith
HTTP headers are case insensitive.
Differential Revision: https://phabricator.services.mozilla.com/D135871 --- netwerk/protocol/http/Http3Stream.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/netwerk/protocol/http/Http3Stream.cpp b/netwerk/protocol/http/Http3Stream.cpp index 7bed2c7a74f99..679481619c5a3 100644 --- a/netwerk/protocol/http/Http3Stream.cpp +++ b/netwerk/protocol/http/Http3Stream.cpp @@ -76,7 +76,8 @@ void Http3Stream::FindRequestContentLength() { MOZ_ASSERT(OnSocketThread(), "not on socket thread"); // Look for Content-Length header to find out if we have request body and // how long it is. - int32_t contentLengthStart = mFlatHttpRequestHeaders.Find("Content-Length:"); + int32_t contentLengthStart = + mFlatHttpRequestHeaders.Find("content-length:", /* aIgnoreCase = */ true); if (contentLengthStart == -1) { // There is no content-Length. return;