CURLOPT_USERAGENT expect the value to the user-agent string, not the entire key-value pair. Before this fix, HTTP header "User-Agent: User-Agent: phpDynDNS/0.7" was sent for DDNS updates. NGINX configuration at GratisDNS will not accept a user-agent formatted in the above way. This commit fixes GratisDNS Dynamic DNS service.
Fix a redundant HTTP "User-Agent" string.
CURLOPT_USERAGENT expect the value to the user-agent string, not the entire key-value pair.
Before this fix, HTTP header "User-Agent: User-Agent: phpDynDNS/0.7" was sent for DDNS updates.
NGINX configuration at GratisDNS will not accept a user-agent formatted in the above way.
This commit fixes GratisDNS Dynamic DNS service.