Commit 7939090f authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

winhttp: Disable automatic authentication.

parent 20bdf059
......@@ -2440,7 +2440,7 @@ static HRESULT WINAPI winhttp_request_Open(
HINTERNET hsession = NULL, hconnect = NULL, hrequest;
URL_COMPONENTS uc;
WCHAR *hostname, *path;
DWORD err, len, flags = 0, request_flags = 0;
DWORD err, len, flags = 0, request_flags = 0, disable_flags;
TRACE("%p, %s, %s, %s\n", request, debugstr_w(method), debugstr_w(url),
debugstr_variant(&async));
......@@ -2488,6 +2488,12 @@ static HRESULT WINAPI winhttp_request_Open(
err = get_last_error();
goto error;
}
disable_flags = WINHTTP_DISABLE_AUTHENTICATION;
if (!WinHttpSetOption( hrequest, WINHTTP_OPTION_DISABLE_FEATURE, &disable_flags, sizeof(disable_flags) ))
{
err = get_last_error();
goto error;
}
if (flags & WINHTTP_FLAG_ASYNC)
{
request->wait = CreateEventW( NULL, FALSE, FALSE, NULL );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment