https://kotlinlang.org logo
k

kittinunf

12/22/2018, 5:49 AM
do you have a good idea on how to fix this?
d

Derk-Jan Karrenbeld

12/22/2018, 8:12 AM
Yes. I think if we have an empty body/redirect body, it shouldn't try to deserialise.
k

kittinunf

12/24/2018, 4:47 AM
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

Derk-Jan Karrenbeld

12/27/2018, 4:02 PM
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

kittinunf

01/03/2019, 6:20 AM
I see! Then the test will need to be fixed a bit. Then, it should return Result failure for 404 then 😄
3 Views