Fix WebRequest test (in case headers are lowercased)

This commit is contained in:
SirLynix 2023-08-17 18:18:33 +02:00
parent acf0c35e0c
commit 6537864abd
1 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,8 @@ SCENARIO("WebService", "[NETWORK][WebService]")
CHECK(result.GetDownloadSpeed() > 0);
INFO(result.GetBody());
CHECK(result.GetBody().find("Authorization: Lynix") != std::string::npos);
CHECK(result.GetBody().find("Authorization: Lynix") != std::string::npos ||
result.GetBody().find("authorization: Lynix") != std::string::npos);
});
webRequest->SetJSonContent(R"({"value":42})");
webRequest->SetHeader("Authorization", "Lynix");