From 094e6eabc672d76aeff4847923fccf3db212eb7c Mon Sep 17 00:00:00 2001 From: Bingbing Date: Wed, 24 Dec 2025 17:38:39 +0800 Subject: [PATCH] Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- packages/insomnia/src/network/url-matches-cert-host.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/insomnia/src/network/url-matches-cert-host.ts b/packages/insomnia/src/network/url-matches-cert-host.ts index f09921eaba..ff3bd13ef2 100644 --- a/packages/insomnia/src/network/url-matches-cert-host.ts +++ b/packages/insomnia/src/network/url-matches-cert-host.ts @@ -6,7 +6,7 @@ const DEFAULT_PORT = 443; export function urlMatchesCertHost(certificateHost: string, requestUrl: string, needCheckPort = true) { const cHostWithProtocol = setDefaultProtocol(certificateHost, 'https:'); - let hostname: string | null = null; + let hostname: string = ''; let port = ''; try { const parsedUrl = new URL(requestUrl);