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));