File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -937,7 +937,7 @@ class winhttp_client final : public _http_client_communicator
937
937
&winhttp_client::completion_callback,
938
938
WINHTTP_CALLBACK_FLAG_ALL_COMPLETIONS | WINHTTP_CALLBACK_FLAG_HANDLES |
939
939
WINHTTP_CALLBACK_FLAG_SECURE_FAILURE | WINHTTP_CALLBACK_FLAG_SEND_REQUEST |
940
- WINHTTP_CALLBACK_FLAG_REDIRECT ,
940
+ WINHTTP_CALLBACK_STATUS_REDIRECT ,
941
941
0 ))
942
942
{
943
943
return GetLastError ();
@@ -1133,6 +1133,9 @@ class winhttp_client final : public _http_client_communicator
1133
1133
return ;
1134
1134
}
1135
1135
1136
+ // WinHttpPAL does not currently provide these options
1137
+ // See https://github.com/microsoft/WinHttpPAL/issues/1
1138
+ #if !defined(CPPREST_FORCE_HTTP_CLIENT_WINHTTPPAL)
1136
1139
if (client_config ().max_redirects () == 0 )
1137
1140
{
1138
1141
// Disable auto redirects.
@@ -1185,6 +1188,7 @@ class winhttp_client final : public _http_client_communicator
1185
1188
return ;
1186
1189
}
1187
1190
}
1191
+ #endif
1188
1192
1189
1193
size_t content_length;
1190
1194
try
You can’t perform that action at this time.
0 commit comments