File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,6 @@ class http_client_config
87
87
#if !defined(__cplusplus_winrt)
88
88
, m_validate_certificates(true )
89
89
#endif
90
- , m_set_user_nativehandle_options([](native_handle)->void {})
91
90
#if !defined(_WIN32) && !defined(__cplusplus_winrt) || defined(CPPREST_FORCE_HTTP_CLIENT_ASIO)
92
91
, m_tlsext_sni_enabled(true )
93
92
#endif
@@ -332,7 +331,8 @@ class http_client_config
332
331
// / <param name="handle">A internal implementation handle.</param>
333
332
void _invoke_nativesessionhandle_options (native_handle handle) const
334
333
{
335
- m_set_user_nativesessionhandle_options (handle);
334
+ if (m_set_user_nativesessionhandle_options)
335
+ m_set_user_nativesessionhandle_options (handle);
336
336
}
337
337
338
338
// / <summary>
@@ -358,7 +358,8 @@ class http_client_config
358
358
// / <param name="handle">A internal implementation handle.</param>
359
359
void invoke_nativehandle_options (native_handle handle) const
360
360
{
361
- m_set_user_nativehandle_options (handle);
361
+ if (m_set_user_nativehandle_options)
362
+ m_set_user_nativehandle_options (handle);
362
363
}
363
364
364
365
#if !defined(_WIN32) && !defined(__cplusplus_winrt) || defined(CPPREST_FORCE_HTTP_CLIENT_ASIO)
You can’t perform that action at this time.
0 commit comments