File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1057,6 +1057,14 @@ int aws_http_client_connect_internal(
10571057 AWS_LOGF_ERROR (AWS_LS_HTTP_CONNECTION , "static: http connection options are null." );
10581058 return aws_raise_error (AWS_ERROR_INVALID_ARGUMENT );
10591059 }
1060+
1061+ #if defined(AWS_OS_IOS ) || defined(AWS_OS_TVOS )
1062+ if (proxy_request_transform ) {
1063+ AWS_LOGF_ERROR (AWS_LS_HTTP_PROXY_NEGOTIATION , "HTTP proxy is not supported on iOS and tvOS platforms" );
1064+ return aws_raise_error (AWS_ERROR_PLATFORM_NOT_SUPPORTED );
1065+ }
1066+ #endif
1067+
10601068 struct aws_http_client_bootstrap * http_bootstrap = NULL ;
10611069 struct aws_string * host_name = NULL ;
10621070 int err = 0 ;
Original file line number Diff line number Diff line change 99#include <aws/common/encoding.h>
1010#include <aws/common/environment.h>
1111#include <aws/common/hash_table.h>
12+ #include <aws/common/platform.h>
1213#include <aws/common/string.h>
1314#include <aws/http/connection_manager.h>
1415#include <aws/http/private/connection_impl.h>
@@ -1565,6 +1566,11 @@ int aws_http_options_validate_proxy_configuration(const struct aws_http_client_c
15651566 return aws_raise_error (AWS_ERROR_INVALID_ARGUMENT );
15661567 }
15671568
1569+ #if defined(AWS_OS_IOS ) || defined(AWS_OS_TVOS )
1570+ AWS_LOGF_ERROR (AWS_LS_HTTP_PROXY_NEGOTIATION , "HTTP proxy is not supported on iOS and tvOS platforms" );
1571+ return aws_raise_error (AWS_ERROR_PLATFORM_NOT_SUPPORTED );
1572+ #endif
1573+
15681574 enum aws_http_proxy_connection_type proxy_type = options -> proxy_options -> connection_type ;
15691575 if (proxy_type == AWS_HPCT_HTTP_FORWARD && options -> tls_options != NULL ) {
15701576 return aws_raise_error (AWS_ERROR_INVALID_STATE );
You can’t perform that action at this time.
0 commit comments