File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ class http_listener
250
250
// / Add a general handler to support all requests.
251
251
// / </summary>
252
252
// / <param name="handler">Function object to be called for all requests.</param>
253
- void support (std::function<void (http_request)> handler)
253
+ void support (const std::function<void (http_request)> & handler)
254
254
{
255
255
m_impl->m_all_requests = handler;
256
256
}
@@ -260,7 +260,7 @@ class http_listener
260
260
// / </summary>
261
261
// / <param name="method">An HTTP method.</param>
262
262
// / <param name="handler">Function object to be called for all requests for the given HTTP method.</param>
263
- void support (const http::method &method, std::function<void (http_request)> handler)
263
+ void support (const http::method &method, const std::function<void (http_request)> & handler)
264
264
{
265
265
m_impl->m_supported_methods [method] = handler;
266
266
}
You can’t perform that action at this time.
0 commit comments