Skip to content

Commit f723a77

Browse files
committed
fix: http request form data condition fixed
1 parent 98b8439 commit f723a77

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

includes/Core/Util/HttpHelper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public static function request($url, $type, $data, $headers = null, $options = n
4141
if (
4242
$type !== 'GET'
4343
&& strpos(strtolower($contentType), 'form')
44+
&& \is_array($data)
4445
&& !strpos(strtolower($contentType), 'urlencoded')
4546
) {
4647
$boundary = wp_generate_password(24);

0 commit comments

Comments
 (0)