[gateway,wst] make WWW-Authenticate: NTLM (without data) work again

This happens in wst.c because the first try is always anonymous
This commit is contained in:
akarl10 2023-06-27 16:27:30 +02:00 committed by akallabeth
parent d55e035260
commit 1108d88fc4
2 changed files with 5 additions and 2 deletions

View File

@ -797,7 +797,8 @@ static BOOL http_response_parse_header_field(HttpResponse* response, const char*
if (!authScheme)
return FALSE;
authValue = NULL;
/* it is not possible to store NULL in a ListDirectory */
authValue = "";
}
status = ListDictionary_Add(response->Authenticates, authScheme, authValue);
@ -919,7 +920,9 @@ static BOOL http_response_parse_header(HttpResponse* response)
}
if (!http_response_parse_header_field(response, name, value))
{
goto fail;
}
*end_of_header = end_of_header_char;
}

View File

@ -717,7 +717,7 @@ static BOOL wst_parse_url(rdpWst* wst, const char* url)
{
if (strncmp("https://", url, 8) != 0)
{
WLog_ERR(TAG, "Websocket URL is invalid. Only wss:// URLs are supported");
WLog_ERR(TAG, "Websocket URL is invalid. Only wss:// or https:// URLs are supported");
return FALSE;
}
else