Skip to content

Commit cc734bf

Browse files
committed
Fixed changes to http_exception api
1 parent b3aa2e6 commit cc734bf

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Release/tests/functional/http/client/outside_tests.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@
2424
****/
2525

2626
#include "stdafx.h"
27-
#include "cpprest/rawptrstream.h"
28-
#include "os_utilities.h"
29-
#include <stdexcept>
3027
#if defined(_MSC_VER) && !defined(__cplusplus_winrt)
28+
#define WIN32_LEAN_AND_MEAN
29+
#include <Windows.h>
3130
#include <winhttp.h>
3231
#endif
32+
#include "cpprest/rawptrstream.h"
33+
#include "os_utilities.h"
34+
#include <stdexcept>
3335

3436
using namespace web;
3537
using namespace utility;
@@ -210,7 +212,7 @@ TEST_FIXTURE(uri_address, outside_ssl_json)
210212
catch (web::http::http_exception const& e)
211213
{
212214
#if defined(_MSC_VER) && !defined(__cplusplus_winrt)
213-
if (e.error_code != API_QUERY_DATA_AVAILABLE || i == 3)
215+
if (e.error_code().value() != API_QUERY_DATA_AVAILABLE || i == 3)
214216
#endif
215217
{
216218
// If we didn't get a "connection broken" error (or we are on the last retry), rethrow it

0 commit comments

Comments
 (0)