mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
parse_str() URL-decodes cookie values, causing the test client to behave differently from real clients (Dart, Swift) which store values verbatim per RFC 6265. This masked a production bug where base64 session values containing %3D%3D would fail to decode on real devices. Replaces the manual Set-Cookie header parsing with cURL's built-in cookie engine (CURLOPT_COOKIEFILE='') and reads cookies via CURLINFO_COOKIELIST, which stores and returns values verbatim without any decoding. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>