ScottHamper / Cookies

JavaScript Client-Side Cookie Manipulation Library
The Unlicense
1.77k stars 170 forks source link

Add 'raw' parameter #44

Closed bradvogel closed 9 years ago

bradvogel commented 9 years ago

It'd be nice to have a 'raw' parameter like https://github.com/aralejs/cookie has that bypasses encoding when setting a cookie.

bradvogel commented 9 years ago

The use case is just interoperating with old backends that didn't encode cookies.

ScottHamper commented 9 years ago

Hey Brad,

Thanks for checking out the library! I understand how this functionality could be useful in certain cases, but I don't like the idea of complicating the API and optionally breaking compatibility with RFC6265 in order to support legacy environments. It should not be the responsibility of Cookies.js to work around the inability to change a backend system.