From 39e647266a3adf88f081f6f45fe501b388932d77 Mon Sep 17 00:00:00 2001 From: Max Wofford Date: Wed, 26 Aug 2020 13:30:40 -0400 Subject: [PATCH] Enforce https --- api/new.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/new.ts b/api/new.ts index 10d8846..d49023e 100644 --- a/api/new.ts +++ b/api/new.ts @@ -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) }) -} \ No newline at end of file +}