Removes URL from user agent
(https://mailpoet.slack.com/archives/C02MTKAJL/p1505488541000029?thread_ts=1505488163.000795&cid=C02MTKAJL)
This commit is contained in:
@@ -61,7 +61,7 @@ class CronHelper {
|
|||||||
'blocking' => true,
|
'blocking' => true,
|
||||||
'sslverify' => false,
|
'sslverify' => false,
|
||||||
'timeout' => self::DAEMON_REQUEST_TIMEOUT,
|
'timeout' => self::DAEMON_REQUEST_TIMEOUT,
|
||||||
'user-agent' => 'MailPoet (www.mailpoet.com) Cron'
|
'user-agent' => 'MailPoet Cron'
|
||||||
);
|
);
|
||||||
$result = wp_remote_get($url, $args);
|
$result = wp_remote_get($url, $args);
|
||||||
return (is_wp_error($result)) ?
|
return (is_wp_error($result)) ?
|
||||||
@@ -84,7 +84,7 @@ class CronHelper {
|
|||||||
'blocking' => true,
|
'blocking' => true,
|
||||||
'sslverify' => false,
|
'sslverify' => false,
|
||||||
'timeout' => $timeout,
|
'timeout' => $timeout,
|
||||||
'user-agent' => 'MailPoet (www.mailpoet.com) Cron'
|
'user-agent' => 'MailPoet Cron'
|
||||||
);
|
);
|
||||||
$result = wp_remote_get($url, $args);
|
$result = wp_remote_get($url, $args);
|
||||||
return wp_remote_retrieve_body($result);
|
return wp_remote_retrieve_body($result);
|
||||||
|
Reference in New Issue
Block a user