File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -326,7 +326,7 @@ class http_client_config
326
326
// / <param name="callback">A user callback allowing for customization of the session</param>
327
327
void set_nativesessionhandle_options (const std::function<void (native_handle)> &callback)
328
328
{
329
- m_set_user_nativesessionhandle_options = callback;
329
+ m_set_user_nativesessionhandle_options = callback;
330
330
}
331
331
332
332
// / <summary>
@@ -335,7 +335,9 @@ class http_client_config
335
335
// / <param name="handle">A internal implementation handle.</param>
336
336
void invoke_nativesessionhandle_options (native_handle handle) const
337
337
{
338
+ if (m_set_user_nativesessionhandle_options != nullptr ) {
338
339
m_set_user_nativesessionhandle_options (handle);
340
+ }
339
341
}
340
342
341
343
You can’t perform that action at this time.
0 commit comments