From d03321d45ee945d9670947e823ca10598d65d940 Mon Sep 17 00:00:00 2001 From: Leo Fajardo Date: Mon, 16 Jan 2023 20:54:01 +0800 Subject: [PATCH] [config] Improved the logic that detects whether the context is an HTTP request since there are cases in which the HTTP host is available but the request method is not. --- config.php | 2 +- start.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.php b/config.php index b86887cd..a9a3f1be 100644 --- a/config.php +++ b/config.php @@ -146,7 +146,7 @@ #-------------------------------------------------------------------------------- if ( ! defined( 'WP_FS__IS_HTTP_REQUEST' ) ) { - define( 'WP_FS__IS_HTTP_REQUEST', isset( $_SERVER['HTTP_HOST'] ) ); + define( 'WP_FS__IS_HTTP_REQUEST', isset( $_SERVER['HTTP_HOST'] ) && isset( $_SERVER['REQUEST_METHOD'] ) ); } if ( ! defined( 'WP_FS__IS_HTTPS' ) ) { diff --git a/start.php b/start.php index 8f22a6e1..612152d5 100644 --- a/start.php +++ b/start.php @@ -15,7 +15,7 @@ * * @var string */ - $this_sdk_version = '2.5.3.2'; + $this_sdk_version = '2.5.3.3'; #region SDK Selection Logic --------------------------------------------------------------------