summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
authorPhilip Soeberg <philip@soeberg.net>2016-07-29 16:55:32 +0200
committerRenato Botelho <renato@netgate.com>2016-08-04 18:36:38 -0300
commitdb392e360a698de7ea86034a200664bd0cf43f82 (patch)
treeb57ce2e58ab1e8b09228c8fc2396c27427d07a7f /src/etc
parent1ea1b228285dfa60da6732eba54dc03b932eb92f (diff)
downloadpfsense-db392e360a698de7ea86034a200664bd0cf43f82.zip
pfsense-db392e360a698de7ea86034a200664bd0cf43f82.tar.gz
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. (cherry picked from commit ce9a957241c0453402d0765be0fe25e1cca48c2a)
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/inc/dyndns.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/inc/dyndns.class b/src/etc/inc/dyndns.class
index bd8fa05..c8e1d56 100644
--- a/src/etc/inc/dyndns.class
+++ b/src/etc/inc/dyndns.class
@@ -153,7 +153,7 @@
var $_cacheFile;
var $_cacheFile_v6;
var $_debugFile;
- var $_UserAgent = 'User-Agent: phpDynDNS/0.7';
+ var $_UserAgent = 'phpDynDNS/0.7';
var $_errorVerbosity = 0;
var $_dnsService;
var $_dnsUser;
OpenPOWER on IntegriCloud