Skip to content

Commit

Permalink
fix: 改用 rawurlencode 来转换 cookie
Browse files Browse the repository at this point in the history
解决 php7.4 cookie 测试失败
symfony/symfony#23255
  • Loading branch information
twinh committed Apr 15, 2020
1 parent d9c2a0d commit 3f1070c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ protected function prepareCurlOptions()
if ($this->cookies) {
$cookies = array();
foreach ($this->cookies as $key => $value) {
$cookies[] = $key . '=' . urlencode($value);
$cookies[] = $key . '=' . rawurlencode($value);
}
$opts[CURLOPT_COOKIE] = implode('; ', $cookies);
}
Expand Down

0 comments on commit 3f1070c

Please sign in to comment.