summaryrefslogtreecommitdiff
path: root/packages/backend/src/misc/check-https.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/backend/src/misc/check-https.ts')
-rw-r--r--packages/backend/src/misc/check-https.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/backend/src/misc/check-https.ts b/packages/backend/src/misc/check-https.ts
index 612032fe97..0b13ccabdd 100644
--- a/packages/backend/src/misc/check-https.ts
+++ b/packages/backend/src/misc/check-https.ts
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: syuilo and other misskey contributors
+ * SPDX-License-Identifier: AGPL-3.0-only
+ */
+
export function checkHttps(url: string): boolean {
return url.startsWith('https://') ||
(url.startsWith('http://') && process.env.NODE_ENV !== 'production');