diff options
author | Ben Straub <bs@github.com> | 2013-09-26 01:25:38 +0400 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2013-09-26 01:25:38 +0400 |
commit | ac316e743878908df762cc0ea07a71cbee5c5802 (patch) | |
tree | 87a6d6b7b03ae860d2d54d11a3dc467fc61e6c6b /src/transports | |
parent | 11f8336ec93ea3a270c9fe80c4bbb68aa4729423 (diff) |
Why are we disabling redirects?
Diffstat (limited to 'src/transports')
-rw-r--r-- | src/transports/winhttp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/transports/winhttp.c b/src/transports/winhttp.c index da257ed4c..377f2ef97 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, |