Skip to content

[ktor] Follow redirects is not disabled #686

@sunkup

Description

@sunkup

Following redirects is disabled, but it actually still works.

Try using an URL shortener like kutt.it for the ics calendar file address. ICSx5 will follow the redirect and add the subscription with the shortened URL.

@ArnyminerZ What is the actual reason we want to disallow following redirects in the first place? Could we not simply allow that?

Disabled (not working) here:

config {
followRedirects(false)
connectTimeout(20, TimeUnit.SECONDS)
readTimeout(60, TimeUnit.SECONDS)
sslSocketFactory(sslContext.socketFactory, certManager)
hostnameVerifier(certManager.HostnameVerifier(OkHostnameVerifier))
}

We can probably disable it properly (if we want to) by setting followRedirects = false for all engines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions