[1/2] rpcrt4: Don't remove the authorization header if the scheme is Basic.

Hans Leidekker hans at codeweavers.com
Wed Sep 11 06:49:05 CDT 2013


---
 dlls/rpcrt4/rpc_transport.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dlls/rpcrt4/rpc_transport.c b/dlls/rpcrt4/rpc_transport.c
index c68f141..d89e5ad 100644
--- a/dlls/rpcrt4/rpc_transport.c
+++ b/dlls/rpcrt4/rpc_transport.c
@@ -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;
 }
-- 
1.8.1.5







More information about the wine-patches mailing list