subasraj / flashpost-support

Flashpost is a lightweight Rest API Client Extension for Visual Studio Code.
MIT License
10 stars 0 forks source link

Set Variable with return Cookie value #4

Closed Jiinn closed 9 months ago

Jiinn commented 9 months ago

Hello,

Thank you for this great application.

VSCode Version : 1.84.2 Flashpost Version : 1.1.42

I have set variable on your apps, with my return response.

The variable has be set but with the Details of first Cookie (.DWPLATFORMAUTH), not the value of good cookie (.DWPLATFORMAUTH) :

image image

When i use my auth, i have automatic cookie on other request, that is great, but the value has not correct : .DWPLATFORMAUTH=; .DWPLATFORMAUTH=...... we have double name. image

Thank you

subasraj commented 9 months ago

Hi, Your "Forms Authentication" API call is returning back 2 cookies. Thats why you see 2 cookies.

Jiinn commented 9 months ago

Two cookie with same name not exist. I have two cookie, but is not the same name.

And for set variable result is not coherent too

subasraj commented 9 months ago

Hi, You do have 2 cookies with the same name. Check the response headers "set-cookie" value. Anyway, i have fixed the code to remove the empty value. Please update Flashpost to version 1.1.44 and try again and it will work.

Jiinn commented 9 months ago

hello, You're right i have same cookie two time.

your update fixes both bug (set variable + empty auto cookie header in other request).

Thank you again.