Fix validation of non-pinned trusted TLS certificates

This commit is contained in:
Cameron Gutman 2020-07-11 12:52:53 -07:00
parent 9255884af4
commit be7b87797b

View File

@ -142,7 +142,7 @@ void MoonlightInstance::NvHTTPRequest(int32_t /*result*/, int32_t callbackId, pp
goto clean_data; 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) { if (err) {
pp::VarDictionary ret; pp::VarDictionary ret;
ret.Set("callbackId", pp::Var(callbackId)); ret.Set("callbackId", pp::Var(callbackId));