RWSN#34832 Geen Basic Authentication sturen als username null

svn path=/Website/branches/v2015.2/; revision=27517
This commit is contained in:
Jos Groot Lipman
2015-12-20 22:01:11 +00:00
parent 6e86f353b3
commit 79d67a9e76

View File

@@ -47,7 +47,7 @@ function submitHTTP( p_connect
// Call XMLhttp.setOption(SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS, secu) // Call XMLhttp.setOption(SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS, secu)
XMLhttp.setRequestHeader("Content-Type", "text/xml; charset=utf-8"); XMLhttp.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
if (p_bedrijfadres.username != "") if (p_bedrijfadres.username)
{ {
var base64 = new Base64Cls(); var base64 = new Base64Cls();
XMLhttp.setRequestHeader("Authorization", "Basic " + base64.encode(p_bedrijfadres.username + ":" + p_bedrijfadres.password)); XMLhttp.setRequestHeader("Authorization", "Basic " + base64.encode(p_bedrijfadres.username + ":" + p_bedrijfadres.password));