Commit ac316e743878908df762cc0ea07a71cbee5c5802

Ben Straub 2013-09-25T14:25:38

Why are we disabling redirects?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/transports/winhttp.c b/src/transports/winhttp.c
index da257ed..377f2ef 100644
--- a/src/transports/winhttp.c
+++ b/src/transports/winhttp.c
@@ -245,6 +245,9 @@ static int winhttp_stream_connect(winhttp_stream *s)
 		git__free(proxy_wide);
 	}
 
+	/* Disable WinHTTP redirects so we can handle them manually. Why, you ask?
+	 * http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/b2ff8879-ab9f-4218-8f09-16d25dff87ae
+	 */
 	if (!WinHttpSetOption(s->request,
 		WINHTTP_OPTION_DISABLE_FEATURE,
 		&disable_redirects,