File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Release/tests/functional/http/client Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 27
27
#include " cpprest/rawptrstream.h"
28
28
#include " os_utilities.h"
29
29
#include < stdexcept>
30
+ #if defined(_MSC_VER) && !defined(__cplusplus_winrt)
31
+ #include < winhttp.h>
32
+ #endif
30
33
31
34
using namespace web ;
32
35
using namespace utility ;
@@ -206,9 +209,13 @@ TEST_FIXTURE(uri_address, outside_ssl_json)
206
209
}
207
210
catch (web::http::http_exception const & e)
208
211
{
209
- if (e.what () != " Error in: WinHttpQueryDataAvailable" || i == 3 )
212
+ #if defined(_MSC_VER) && !defined(__cplusplus_winrt)
213
+ if (e.error_code != API_QUERY_DATA_AVAILABLE || i == 3 )
214
+ #endif
215
+ {
210
216
// If we didn't get a "connection broken" error (or we are on the last retry), rethrow it
211
217
throw ;
218
+ }
212
219
os_utilities::sleep (1000 );
213
220
}
214
221
}
You can’t perform that action at this time.
0 commit comments