Skip to content

Commit

Permalink
fix: force default separator for fn http_build_query
Browse files Browse the repository at this point in the history
    - Add '&' for the $arg_separator parameter
  • Loading branch information
DavidLatelier committed Sep 30, 2022
1 parent 505e860 commit 20ea644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function post( $url = '', $args = array() ) {
curl_setopt( $curl_handle, CURLOPT_SSL_VERIFYHOST, 0 );
curl_setopt( $curl_handle, CURLOPT_CUSTOMREQUEST, 'POST' );
if ( ! empty( $args ) ) {
curl_setopt( $curl_handle, CURLOPT_POSTFIELDS, http_build_query( $args ) );
curl_setopt( $curl_handle, CURLOPT_POSTFIELDS, http_build_query( $args, '', '&' ) );
}
$response = curl_exec( $curl_handle );
curl_close( $curl_handle );
Expand Down

0 comments on commit 20ea644

Please sign in to comment.