Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndris Zeila <andris.zeila@zabbix.com>2021-01-21 11:25:26 +0300
committerAndris Zeila <andris.zeila@zabbix.com>2021-01-21 11:25:26 +0300
commit5d0be2f8351b2014c0c8cd64c4e308f485f78bf6 (patch)
tree5b9c3caba10ddd2fb7d9d8dba617e41e5aa4af2a /src/libs/zbxembed
parenta0eef671a2fd6534e8c42cb448d27c06eff5cb2c (diff)
.......PS. [ZBXNEXT-6441] fixed HTTPAUTH_ variable initialization
Diffstat (limited to 'src/libs/zbxembed')
-rw-r--r--src/libs/zbxembed/httprequest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/zbxembed/httprequest.c b/src/libs/zbxembed/httprequest.c
index 9e48f79a75c..81934e11b8a 100644
--- a/src/libs/zbxembed/httprequest.c
+++ b/src/libs/zbxembed/httprequest.c
@@ -628,12 +628,12 @@ int zbx_es_init_httprequest(zbx_es_t *es, char **error)
duk_put_global_string(es->env->ctx, "HTTPAUTH_BASIC");
duk_push_number(es->env->ctx, CURLAUTH_DIGEST);
duk_put_global_string(es->env->ctx, "HTTPAUTH_DIGEST");
- duk_put_global_string(es->env->ctx, "HTTPAUTH_DIGEST");
#if LIBCURL_VERSION_NUM >= 0x072600
duk_push_number(es->env->ctx, CURLAUTH_NEGOTIATE);
#else
duk_push_number(es->env->ctx, CURLAUTH_GSSNEGOTIATE);
#endif
+ duk_put_global_string(es->env->ctx, "HTTPAUTH_NEGOTIATE");
duk_push_number(es->env->ctx, CURLAUTH_NTLM);
duk_put_global_string(es->env->ctx, "HTTPAUTH_NTLM");