This is a migrated thread and some comments may be shown as answers.

Http Modue bug

2 Answers 29 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
suralal
Top achievements
Rank 1
suralal asked on 04 Jul 2016, 05:32 AM

I am trying the nativescript http module (also fetch module) in android.

My sever send different header infrmation, 5 of which ar Set-Cookie header

The NativeSript Http module is losing 4/5 set-Cookie headers. Is there any workaround? 

2 Answers, 1 is accepted

Sort by
0
Nick Iliev
Telerik team
answered on 04 Jul 2016, 08:43 AM
Hello ,

After a research on that matter, I have found out that this was documented issue discussed here and fixed with this commit so you should not be encountering this problem with the current NativeScript version.

Have you tried to log your response (from "" or "fetch" module) to ensure that the headers are lost!?
Some of the users are suggesting specific workarounds in the discussion but if the problem persists at your side
 please send us as much information as you can including response logs (both from NativeScript app and from what it should be in an app like Postman) , your testing end-point (very important in order to be able to reproduce this specific behaviour) and the code you are using to receive the HTTP responses in your app.

Regards,
Nikolay Iliev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Nick Iliev
Telerik team
answered on 04 Jul 2016, 12:15 PM
Hi ,

We were able to reproduce this behaviour with our own server that sends multiple headers and indeed this appears to be a real issue. The bug is logged at this issue and you can track its development and fix.
Once a bugfix is released the milestone will be updated for the NativeScript version which will include the fixed code.

Regards,
Nikolay Iliev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussion
Asked by
suralal
Top achievements
Rank 1
Answers by
Nick Iliev
Telerik team
Share this question
or