http-server icon indicating copy to clipboard operation
http-server copied to clipboard

Allow to create cookies that are not base64 encoded

Open RomainLanz opened this issue 3 years ago • 0 comments

Hey! 👋🏻

This PR adds the possibility to create plainCookie without encoding them to base64 before saving them.

response.plainCookie('name', 'romain', { encode: false })

This can be useful when you are creating the cookie for third-party services that do not expect base64 cookies.

RomainLanz avatar Jul 12 '22 07:07 RomainLanz