Re: winhttp: Support setting WinHttpRequestOption_EnableRedirects.
24 Aug
2011
24 Aug
'11
8:39 a.m.
Hi Hans, On 08/24/11 10:23, Hans Leidekker wrote:
+ EnterCriticalSection(&request->cs ); + switch (option) + { + case WinHttpRequestOption_EnableRedirects: + { + if (V_BOOL(&value ) == VARIANT_TRUE)
You shouldn't compare bools like that, it should be if(V_BOOL(&value)).
+ request->disable_feature&= !WINHTTP_DISABLE_REDIRECTS;
Here is a typo, it should be ~WINHTTP_DISABLE_REDIRECTS. Jacek
5228
Age (days ago)
5228
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jacek Caban