mirror of
https://github.com/Kong/insomnia.git
synced 2026-02-14 16:13:00 -05:00
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user