mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-13 20:06:43 +00:00
Percent-encode + to %20
This commit is contained in:
+1
-1
@@ -86,7 +86,7 @@ class Curl {
|
||||
|
||||
foreach ($data as $k => $value) {
|
||||
if (is_string($value)) {
|
||||
$query[] = urlencode(is_null($key) ? $k : $key) . '=' . urlencode($value);
|
||||
$query[] = urlencode(is_null($key) ? $k : $key) . '=' . rawurlencode($value);
|
||||
}
|
||||
else if (is_array($value)) {
|
||||
$query[] = $this->http_build_multi_query($value, $k . '[]');
|
||||
|
||||
Reference in New Issue
Block a user