netstar pushed a commit to branch master.

http://git.enlightenment.org/website/www.git/commit/?id=e498262365006bc79b89550ba7e55701bb993e16

commit e498262365006bc79b89550ba7e55701bb993e16
Author: Alastair Poole <nets...@gmail.com>
Date:   Tue Mar 9 15:41:39 2021 +0000

    weather: add url to user agent.
    
    As per met.no request.
---
 public_html/weather.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/public_html/weather.php b/public_html/weather.php
index f3e340e6..48090da2 100644
--- a/public_html/weather.php
+++ b/public_html/weather.php
@@ -49,7 +49,7 @@ function weather_get($lat, $lon)
 
     $url = 
"https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=$lat&lon=$lon";;
     $c = curl_init();
-    curl_setopt($c, CURLOPT_USERAGENT, "eWeatherProxy/1.0");
+    curl_setopt($c, CURLOPT_USERAGENT, "eWeatherProxy/1.0 
(www.enlightenment.org)");
     curl_setopt($c, CURLOPT_URL, $url);
     curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
 

-- 


Reply via email to