Andy Victors
06/03/2019, 10:59 AMBy default, Ktor HTTP client does follow redirections; this feature allows to follow Location redirects in a way that works with any HTTP engine.
vs
The iOS engine uses the asynchronous NSURLSession internally. And have no additional configuration.
What is right? I use followRedirects=false
in MPP common code and on android it works properly but obviously it still follows redirects on iOS. Any way possible to force ktor not to follow redirects on iOS?e5l
06/03/2019, 11:02 AMiOS
requires to disable redirect under the hood. It should be possible with configureRequest
method in IosClientEngineConfig
, but obviously should be handled by ktor. Could you file an issue?Andy Victors
06/03/2019, 11:06 AMe5l
06/03/2019, 11:06 AMAndy Victors
06/03/2019, 11:12 AM