Changeset 3324855
- Timestamp:
- 07/09/2025 09:26:56 AM (9 months ago)
- Location:
- hyperpay-gateways
- Files:
-
- 2 edited
-
tags/5.3.1/src/App/Http.php (modified) (2 diffs)
-
trunk/src/App/Http.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hyperpay-gateways/tags/5.3.1/src/App/Http.php
r3324317 r3324855 13 13 public static function post($url, $data = []) 14 14 { 15 $response = wp_remote_post($url, [...$data, 'timeout' => 10000]); // 10 seconds timeout15 $response = wp_remote_post($url, \array_merge($data, ['timeout' => 10000])); // 10 seconds timeout 16 16 return self::handelResponse($response); 17 17 } … … 19 19 public static function get($url, $options = []) 20 20 { 21 $response = wp_remote_get($url, [...$options, 'timeout' => 10000]); // 10 seconds timeout21 $response = wp_remote_get($url, \array_merge($options, ['timeout' => 10000])); // 10 seconds timeout 22 22 return self::handelResponse($response); 23 23 } -
hyperpay-gateways/trunk/src/App/Http.php
r3324312 r3324855 13 13 public static function post($url, $data = []) 14 14 { 15 $response = wp_remote_post($url, [...$data, 'timeout' => 10000]); // 10 seconds timeout15 $response = wp_remote_post($url, \array_merge($data, ['timeout' => 10000])); // 10 seconds timeout 16 16 return self::handelResponse($response); 17 17 } … … 19 19 public static function get($url, $options = []) 20 20 { 21 $response = wp_remote_get($url, [...$options, 'timeout' => 10000]); // 10 seconds timeout21 $response = wp_remote_get($url, \array_merge($options, ['timeout' => 10000])); // 10 seconds timeout 22 22 return self::handelResponse($response); 23 23 }
Note: See TracChangeset
for help on using the changeset viewer.