From: Gonzalo Paniagua Javier Date: Sun, 18 Mar 2012 21:43:41 +0000 (-0400) Subject: Redirect right after NTLM authentication works now X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=c64a76e3aae1bd6347f35c1c3bd1ace56247d4f1;p=mono.git Redirect right after NTLM authentication works now Fixes bug #3894. --- diff --git a/mcs/class/System/System.Net/HttpWebRequest.cs b/mcs/class/System/System.Net/HttpWebRequest.cs index 4d10f991dfc..483e2b81dbd 100644 --- a/mcs/class/System/System.Net/HttpWebRequest.cs +++ b/mcs/class/System/System.Net/HttpWebRequest.cs @@ -1527,6 +1527,8 @@ namespace System.Net bodyBufferLength = writeStream.WriteBufferLength; } b = Redirect (result, code); + if (b && ntlm_auth_state != 0) + ntlm_auth_state = 0; } if (resp != null && c >= 300 && c != 304)