diff --git a/packages/electron-builder-http/src/httpExecutor.ts b/packages/electron-builder-http/src/httpExecutor.ts index bef00cdc96e..ff9a51e14df 100644 --- a/packages/electron-builder-http/src/httpExecutor.ts +++ b/packages/electron-builder-http/src/httpExecutor.ts @@ -297,6 +297,10 @@ export function configureRequestOptions(options: RequestOptions, token?: string if ((method == null || method === "GET") || headers["Cache-Control"] == null) { headers["Cache-Control"] = "no-cache" } + + if (options.protocol == null) { + options.protocol = "https:" + } return options }