Fix WebRequest test (in case headers are lowercased)
This commit is contained in:
parent
acf0c35e0c
commit
6537864abd
|
|
@ -63,7 +63,8 @@ SCENARIO("WebService", "[NETWORK][WebService]")
|
||||||
CHECK(result.GetDownloadSpeed() > 0);
|
CHECK(result.GetDownloadSpeed() > 0);
|
||||||
|
|
||||||
INFO(result.GetBody());
|
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->SetJSonContent(R"({"value":42})");
|
||||||
webRequest->SetHeader("Authorization", "Lynix");
|
webRequest->SetHeader("Authorization", "Lynix");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue