diff options
author | Philip Soeberg <philip@soeberg.net> | 2016-07-29 16:55:32 +0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-08-04 18:36:21 -0300 |
commit | 2d8770b2ce08c5ec0b75c62bc8acb9cdd12f1ad1 (patch) | |
tree | 486cab3cf214f67c478810958743e50e1a8a308d /src | |
parent | c22ddfe7972f70b791e08a67dd97c2583cf44b26 (diff) | |
download | pfsense-2d8770b2ce08c5ec0b75c62bc8acb9cdd12f1ad1.zip pfsense-2d8770b2ce08c5ec0b75c62bc8acb9cdd12f1ad1.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')
-rw-r--r-- | src/etc/inc/dyndns.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/inc/dyndns.class b/src/etc/inc/dyndns.class index 41f3cc4..6b993a4 100644 --- a/src/etc/inc/dyndns.class +++ b/src/etc/inc/dyndns.class @@ -155,7 +155,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; |