Project

General

Profile

« Previous | Next » 

Revision ce9a9572

Added by Philip Soeberg almost 9 years ago

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.

View differences:

src/etc/inc/dyndns.class
123 123
		var $_cacheFile;
124 124
		var $_cacheFile_v6;
125 125
		var $_debugFile;
126
		var $_UserAgent = 'User-Agent: phpDynDNS/0.7';
126
		var $_UserAgent = 'phpDynDNS/0.7';
127 127
		var $_errorVerbosity = 0;
128 128
		var $_dnsService;
129 129
		var $_dnsUser;

Also available in: Unified diff