Hi, I'm using kotlinx.html and the Locations API t...
# ktor
k
Hi, I'm using kotlinx.html and the Locations API to create a form. It works fine on my test environment, but when deploying it with https enabled, my form action is still in http. Here what it looks like:
Copy code
@Location("/ios/upload")
object IOSUpload

fun Route.iOSUpload() {
authenticate {
        get<IOSUpload> {
            call.respondDefaultHtml(emptyList(), CacheControl.Visibility.Private) {
                h2 { +"Upload iOS App" }

                form(
                    action = call.url(IOSUpload),
                    classes = "pure-form-stacked",
                    encType = FormEncType.multipartFormData,
                    method = <http://FormMethod.post|FormMethod.post>
                ) {  [...]  }
            }
        }

        post<IOSUpload> { [...] }
}
What am I missing?