Skip to content

Commit 6ca83ac

Browse files
committed
Skip compression test on platforms that do not claim to support compression.
1 parent e150dfc commit 6ca83ac

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <winhttp.h>
2929
#endif
3030
#include "cpprest/rawptrstream.h"
31+
#include "cpprest/details/http_helpers.h"
3132
#include "os_utilities.h"
3233
#include <stdexcept>
3334

@@ -65,6 +66,11 @@ TEST_FIXTURE(uri_address, outside_cnn_dot_com)
6566

6667
TEST_FIXTURE(uri_address, outside_wikipedia_compressed_http_response)
6768
{
69+
if (web::http::details::compression::stream_decompressor::is_supported() == false)
70+
{
71+
// On platforms which do not support compressed http, nothing to check.
72+
return;
73+
}
6874
http_client_config config;
6975
config.set_request_compressed_response(true);
7076

0 commit comments

Comments
 (0)