Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
| $cookie = 'cookie1=value1'; | ||
| $response = $this->client->call(Client::METHOD_GET, '/cookies', [ | ||
| 'Cookie: cookie1=value1; cookie2=value2' | ||
| 'Cookie: ' . $cookie | ||
| ]); | ||
| $this->assertEquals(200, $response['headers']['status-code']); | ||
| $this->assertEquals($cookie, $response['body']); | ||
|
|
||
| $cookie = 'cookie1=value1; cookie2=value2'; | ||
| $response = $this->client->call(Client::METHOD_GET, '/cookies', [ | ||
| 'Cookie: ' . $cookie | ||
| ]); | ||
| $this->assertEquals(200, $response['headers']['status-code']); | ||
| $this->assertEquals($cookie, $response['body']); | ||
|
|
||
|
|
||
| $cookie = 'cookie1=value1;cookie2=value2'; | ||
| $response = $this->client->call(Client::METHOD_GET, '/cookies', [ | ||
| 'Cookie: ' . $cookie | ||
| ]); | ||
| $this->assertEquals(200, $response['headers']['status-code']); | ||
| $this->assertEquals('cookie1=value1; cookie2=value2', $response['body']); | ||
| $this->assertEquals($cookie, $response['body']); |
There was a problem hiding this comment.
Let's cover case sensitivity of keys, inclusion of other attributes like path, domain, httponly, etc.
There was a problem hiding this comment.
Added case sensitivity, and few more. Attributes like path and stuff is for Set-cookie. those are given to browser, to manage cookies well, but aren't sent back to server in cookie header
Removes Swoole's cookie parsing to allow us to proxy raw cookie as is