fix: fix https config

This commit is contained in:
2025-06-04 15:22:57 +08:00
parent c1388118a6
commit 8cca071d9b
3 changed files with 19 additions and 2 deletions

View File

@@ -140,4 +140,11 @@ export class AssistantInit extends AssistantConfig {
},
} as AssistantConfigData;
}
getHttps() {
const https = this.getConfig()?.https || {};
return {
https,
protocol: https?.type === 'http' ? 'http' : 'https',
};
}
}