Move the websocket protocol name instead of copying it.

Closes #1929.
This commit is contained in:
Sadie Powell 2021-11-17 15:41:32 +00:00
parent cb2a4459c9
commit b0959d3a0e

View File

@ -427,7 +427,7 @@ class WebSocketHook final
if (is_binary || is_text)
{
selectedproto = proto;
selectedproto = std::move(proto);
sendastext = is_text;
break;
}