rpcrt4: Don't remove the authorization header if the scheme is Basic.

This commit is contained in:
Hans Leidekker 2013-09-11 13:49:05 +02:00 committed by Alexandre Julliard
parent 81d90ba06d
commit 6f2c4bac58
1 changed files with 3 additions and 1 deletions

View File

@ -2803,7 +2803,9 @@ static RPC_STATUS authorize_request(RpcConnection_http *httpc, HINTERNET request
drain_content(request);
}
HttpAddRequestHeadersW(request, authW, -1, HTTP_ADDREQ_FLAG_REPLACE);
if (info->scheme != RPC_C_HTTP_AUTHN_SCHEME_BASIC)
HttpAddRequestHeadersW(request, authW, -1, HTTP_ADDREQ_FLAG_REPLACE);
destroy_authinfo(info);
return status;
}