Skip to content

Commit dd05fe2

Browse files
committed
allowing passing arrays in post data
1 parent eaf9c7d commit dd05fe2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Curl/Rest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,11 @@ public function send(string $method, string $path)
249249
$data = json_encode($data);
250250
break;
251251
case CurlHandler::ENCODE_QUERY:
252-
default:
253252
$data = http_build_query($data);
254253
break;
254+
case CurlHandler::ENCODE_RAW:
255+
default:
256+
break;
255257
}
256258
//it's a get or delete
257259
} else {

0 commit comments

Comments
 (0)