[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:
parent
d55e035260
commit
1108d88fc4
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user