diff --git a/src/main/native/cpp/support/HttpUtil.cpp b/src/main/native/cpp/support/HttpUtil.cpp index 7b42e297fb..be23193902 100644 --- a/src/main/native/cpp/support/HttpUtil.cpp +++ b/src/main/native/cpp/support/HttpUtil.cpp @@ -106,9 +106,9 @@ bool ParseHttpHeaders(raw_istream& is, llvm::SmallVectorImpl* contentType, llvm::StringRef field; std::tie(field, line) = line.split(':'); field = field.rtrim(); - if (field == "Content-Type") + if (field.equals_lower("content-type")) inContentType = true; - else if (field == "Content-Length") + else if (field.equals_lower("content-length")) inContentLength = true; else continue; // ignore other fields