In Ktor up to and including 1.2.6, the client resends data from the HTTP Authorization header to a redirect location.
jetbrains ktor