do you have a good idea on how to fix this?
# kotlin-fuel
k
do you have a good idea on how to fix this?
d
Yes. I think if we have an empty body/redirect body, it shouldn't try to deserialise.
k
i see …. I will try to work on this today
Bro, one more question! in test case,
fun followRedirectToNotFound()
when the redirected location is 404 (not found), it should not be redirected? Is this correct?
d
If the redirected location does not exist, it should give you the 404.
Because we DO redirect, and then the next step is just handling it as if it's the first hop in the request.
k
I see! Then the test will need to be fixed a bit. Then, it should return Result failure for 404 then 😄