Skip to content

Commit dec0e52

Browse files
committed
Brilliant copy-paste issue: class constants instead of method calls for RFC2616 and RFC6265
1 parent d30a625 commit dec0e52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Curl/Curl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ public function setCookie($key, $value)
585585
{
586586
$name_chars = array();
587587
foreach (str_split($key) as $name_char) {
588-
if (!array_key_exists($name_char, CurlCookieConst::RFC2616)) {
588+
if (!array_key_exists($name_char, CurlCookieConst::RFC2616())) {
589589
$name_chars[] = rawurlencode($name_char);
590590
} else {
591591
$name_chars[] = $name_char;
@@ -594,7 +594,7 @@ public function setCookie($key, $value)
594594

595595
$value_chars = array();
596596
foreach (str_split($value) as $value_char) {
597-
if (!array_key_exists($value_char, CurlCookieConst::RFC6265)) {
597+
if (!array_key_exists($value_char, CurlCookieConst::RFC6265())) {
598598
$value_chars[] = rawurlencode($value_char);
599599
} else {
600600
$value_chars[] = $value_char;

0 commit comments

Comments
 (0)