Skip to content

Commit

Permalink
[config] Improved the logic that detects whether the context is an HT…
Browse files Browse the repository at this point in the history
…TP request since there are cases in which the HTTP host is available but the request method is not.
  • Loading branch information
fajardoleo authored and vovafeldman committed Jan 16, 2023
1 parent a552c72 commit d03321d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) ) {
Expand Down
2 changes: 1 addition & 1 deletion start.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @var string
*/
$this_sdk_version = '2.5.3.2';
$this_sdk_version = '2.5.3.3';

#region SDK Selection Logic --------------------------------------------------------------------

Expand Down

0 comments on commit d03321d

Please sign in to comment.