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

Alexandre Julliard julliard at winehq.org
Wed Sep 11 16:01:45 CDT 2013


Module: wine
Branch: master
Commit: 6f2c4bac58dc6fa2d5217b4753a658cd69ac1ec8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6f2c4bac58dc6fa2d5217b4753a658cd69ac1ec8

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Wed Sep 11 13:49:05 2013 +0200

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

---

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

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;
 }




More information about the wine-cvs mailing list