Skip to content

Commit

Permalink
Change HTTP request method for ACF-E, GF, PLL
Browse files Browse the repository at this point in the history
Use GET instead of POST to better match the verb to the request and for consistency between downloaders.
  • Loading branch information
mcaskill committed Mar 16, 2023
1 parent 23e7a41 commit 2810340
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Plugins/AcfExtendedPro.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class AcfExtendedPro extends AbstractEddPlugin {
*/
public function getDownloadUrl() {
$http = new Http();
$response = json_decode( $http->post( 'https://acf-extended.com', array(
$response = json_decode( $http->get( 'https://acf-extended.com', array(
'edd_action' => 'get_version',
'license' => getenv( 'ACFE_PRO_KEY' ),
'item_name' => 'ACF Extended Pro',
Expand Down
2 changes: 1 addition & 1 deletion src/Plugins/GravityForms.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct( $version = '', $slug = 'gravityforms' ) {
*/
public function getDownloadUrl() {
$http = new Http();
$response = unserialize( $http->post( 'https://gravityapi.com/wp-content/plugins/gravitymanager/api.php', array(
$response = unserialize( $http->get( 'https://gravityapi.com/wp-content/plugins/gravitymanager/api.php', array(
'op' => 'get_plugin',
'slug' => $this->slug,
'key' => getenv( 'GRAVITY_FORMS_KEY' ),
Expand Down
2 changes: 1 addition & 1 deletion src/Plugins/PolylangPro.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class PolylangPro extends AbstractEddPlugin {
*/
public function getDownloadUrl() {
$http = new Http();
$response = json_decode( $http->post( 'https://polylang.pro', array(
$response = json_decode( $http->get( 'https://polylang.pro', array(
'edd_action' => 'get_version',
'license' => getenv( 'POLYLANG_PRO_KEY' ),
'item_name' => 'Polylang Pro',
Expand Down

0 comments on commit 2810340

Please sign in to comment.