mirror of
https://github.com/System-End/cdn.git
synced 2026-04-19 16:18:17 +00:00
Enforce https
This commit is contained in:
parent
cf8e8cdec4
commit
39e647266a
1 changed files with 2 additions and 2 deletions
|
|
@ -52,7 +52,7 @@ const deploy = async (files: {sha: string, file: string, path: string, size: num
|
|||
})
|
||||
const json = await req.json()
|
||||
const baseURL = json.url
|
||||
const fileURLs = files.map(f => baseURL + '/' + f.path)
|
||||
const fileURLs = files.map(f => 'https://' + baseURL + '/' + f.path)
|
||||
|
||||
return { status: req.status, fileURLs }
|
||||
}
|
||||
|
|
@ -85,4 +85,4 @@ export default async (req: ServerRequest) => {
|
|||
status: result.status,
|
||||
body: JSON.stringify(result.fileURLs)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue