Skip to content

Commit 47df8f5

Browse files
committed
Added check if is empty, since we only need a dummy param if it is empty
1 parent 804d969 commit 47df8f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ public static function send(string $action, array $data = []): ServerResponse
665665
*/
666666
protected static function addDummyParamIfNecessary(string $action, array &$data): void
667667
{
668-
if (in_array($action, self::$actions_need_dummy_param, true)) {
668+
if (empty($data) && in_array($action, self::$actions_need_dummy_param, true)) {
669669
// Can be anything, using a single letter to minimise request size.
670670
$data = ['d'];
671671
}

0 commit comments

Comments
 (0)