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
326326 // / <param name="callback">A user callback allowing for customization of the session</param>
327327 void set_nativesessionhandle_options (const std::function<void (native_handle)> &callback)
328328 {
329- m_set_user_nativesessionhandle_options = callback;
329+ m_set_user_nativesessionhandle_options = callback;
330330 }
331331
332332 // / <summary>
@@ -335,7 +335,9 @@ class http_client_config
335335 // / <param name="handle">A internal implementation handle.</param>
336336 void invoke_nativesessionhandle_options (native_handle handle) const
337337 {
338+ if (m_set_user_nativesessionhandle_options != nullptr ) {
338339 m_set_user_nativesessionhandle_options (handle);
340+ }
339341 }
340342
341343
You can’t perform that action at this time.
0 commit comments