From be7b87797bb0b87d6202f19ef497e9a1cefeb4f9 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 11 Jul 2020 12:52:53 -0700 Subject: [PATCH] Fix validation of non-pinned trusted TLS certificates --- http.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http.cpp b/http.cpp index 3788672..0b425e9 100644 --- a/http.cpp +++ b/http.cpp @@ -142,7 +142,7 @@ void MoonlightInstance::NvHTTPRequest(int32_t /*result*/, int32_t callbackId, pp goto clean_data; } - err = http_request(url.c_str(), ppkstr.c_str(), data); + err = http_request(url.c_str(), ppkstr.empty() ? NULL : ppkstr.c_str(), data); if (err) { pp::VarDictionary ret; ret.Set("callbackId", pp::Var(callbackId));