Fix this shit AGAIN
authorTheSaminator <TheSaminator@users.noreply.github.com>
Sun, 20 Feb 2022 18:31:20 +0000 (13:31 -0500)
committerTheSaminator <TheSaminator@users.noreply.github.com>
Sun, 20 Feb 2022 18:31:20 +0000 (13:31 -0500)
src/jvmMain/kotlin/starshipfights/info/view_tpl.kt

index f537fdd6061b495eb9e8c47da018e3d9487eaf8f..f5e3533de6c3336f54a518038f23cf7f2c208ac4 100644 (file)
@@ -1,6 +1,7 @@
 package starshipfights.info
 
 import io.ktor.application.*
+import io.ktor.http.*
 import io.ktor.util.*
 import kotlinx.html.*
 
@@ -8,7 +9,10 @@ fun ApplicationCall.page(pageTitle: String? = null, navBar: List<NavItem>? = nul
        head {
                meta(charset = "utf-8")
                
-               metadata(pageData, url { host = "starshipfights.net" })
+               metadata(pageData, url {
+                       protocol = URLProtocol.HTTPS
+                       host = "starshipfights.net"
+               })
                
                link(rel = "icon", type = "image/svg+xml", href = "/static/images/icon.svg")
                link(rel = "preconnect", href = "https://fonts.googleapis.com")