feat(frontend): don't assume secure protocol for kyros websocket/fs (#6420)

* feat(frontend): don't assume https as websocket/fs protocol

* fix(frontend): actually do the same for websocket

* fix(frontend): don't strip ws path
This commit is contained in:
François-Xavier Talbot
2026-06-16 21:39:38 +00:00
committed by GitHub
parent 8591bc8ebc
commit 5ed322d281
4 changed files with 18 additions and 3 deletions
@@ -1,5 +1,6 @@
import { AbstractModule } from '../../../core/abstract-module'
import type { UploadHandle, UploadProgress } from '../../../types/upload'
import { getNodeBaseUrl } from '../../../utils/node-url'
import type { Archon } from '../../archon/types'
import type { Kyros } from '../types'
@@ -11,7 +12,7 @@ export class KyrosFilesV0Module extends AbstractModule {
}
private getNodeBaseUrl(auth: NodeFsAuth): string {
return `https://${auth.url.replace(/\/modrinth\/v\d+\/fs\/?$/, '')}`
return getNodeBaseUrl(auth.url)
}
/**