I'm working on a Kotlin Multiplatform project and ...
# multiplatform
m
I'm working on a Kotlin Multiplatform project and encountering an odd problem with Ktor's HTTP client. Here's a breakdown: Scenario: • Making a GET request using Ktor to an endpoint that involves internal redirection. Expected Behavior: • Both Android and iOS clients should follow the redirects and return a 200 success response. Actual Behavior:Android: Works as expected (200 response). • Android (followRedirects = false): Correctly returns 307 status. • iOS: Consistently returns 401 (Unauthorized). Question: Could anyone help me understand why the iOS implementation of my Ktor client is failing to handle redirects properly, resulting in a 401 error? Is there a platform-specific issue or configuration detail I'm missing? Thank you for your insights!