Remove unused capture httpContext in onHttp lambda. (#1094)

This commit is contained in:
Martín Blech
2020-09-08 10:58:57 -07:00
committed by GitHub
parent 03fca626a9
commit 5507dd5560
+1 -1
View File
@@ -183,7 +183,7 @@ public:
webSocketContext->getExt()->maxBackpressure = behavior.maxBackpressure;
webSocketContext->getExt()->compression = behavior.compression;
httpContext->onHttp("get", pattern, [webSocketContext, httpContext = this->httpContext, behavior = std::move(behavior)](auto *res, auto *req) mutable {
httpContext->onHttp("get", pattern, [webSocketContext, behavior = std::move(behavior)](auto *res, auto *req) mutable {
/* If we have this header set, it's a websocket */
std::string_view secWebSocketKey = req->getHeader("sec-websocket-key");