From 79d67a9e76fa67418dd59812ed0e1c800fa3192a Mon Sep 17 00:00:00 2001 From: Jos Groot Lipman Date: Sun, 20 Dec 2015 22:01:11 +0000 Subject: [PATCH] RWSN#34832 Geen Basic Authentication sturen als username null svn path=/Website/branches/v2015.2/; revision=27517 --- UTILS/PutOrders/puo_sendhttp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UTILS/PutOrders/puo_sendhttp.js b/UTILS/PutOrders/puo_sendhttp.js index 2728171110..31aa41ab10 100644 --- a/UTILS/PutOrders/puo_sendhttp.js +++ b/UTILS/PutOrders/puo_sendhttp.js @@ -47,7 +47,7 @@ function submitHTTP( p_connect // Call XMLhttp.setOption(SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS, secu) XMLhttp.setRequestHeader("Content-Type", "text/xml; charset=utf-8"); - if (p_bedrijfadres.username != "") + if (p_bedrijfadres.username) { var base64 = new Base64Cls(); XMLhttp.setRequestHeader("Authorization", "Basic " + base64.encode(p_bedrijfadres.username + ":" + p_bedrijfadres.password));