net: accept a NULL user agent in sceHttpCreateTemplate (Cyberpunk 2077)

This commit is contained in:
nmzik
2026-10-23 07:42:28 +02:00
parent f9e14084d6
commit 87e815b250
2 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -466,7 +466,7 @@ Network::Id Network::HttpCreateTemplate(Id http_ctx_id, const char* user_agent,
HttpTemplate tn {};
tn.used = true;
tn.http_ver = http_ver;
tn.user_agent = std::string(user_agent);
tn.user_agent = user_agent != nullptr ? user_agent : "";
tn.is_auto_proxy_conf = is_auto_proxy_conf;
tn.http_ctx_id = http_ctx_id.GetId();
tn.nonblock = false;