From d07dbd9114af0c8be4bb25a41da2731f77d76fae Mon Sep 17 00:00:00 2001 From: Marc Jauvin Date: Fri, 29 Nov 2024 12:06:17 -0500 Subject: [PATCH] add default user agent --- src/Network/Http.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Network/Http.php b/src/Network/Http.php index 62dea45f..f806b6fc 100644 --- a/src/Network/Http.php +++ b/src/Network/Http.php @@ -275,6 +275,7 @@ public function send() curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); + curl_setopt($curl, CURLOPT_USERAGENT, 'Winter Storm'); if (defined('CURLOPT_FOLLOWLOCATION') && !ini_get('open_basedir')) { curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);