diff options
| author | 2026-05-01 00:29:19 +0100 | |
|---|---|---|
| committer | 2026-05-01 00:29:19 +0100 | |
| commit | 749239cf951e317dc9f62a32c25438daca212648 (patch) | |
| tree | 0b851aff95c59e3f23296292bcee24b2d97c70df /modules/websocket.cpp | |
| parent | Remove the remaining function in utility/string to utility/container. (diff) | |
Remove the last remaining use of strncasecmp.
Diffstat (limited to 'modules/websocket.cpp')
| -rw-r--r-- | modules/websocket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/websocket.cpp b/modules/websocket.cpp index d203373a5..a3bf9d400 100644 --- a/modules/websocket.cpp +++ b/modules/websocket.cpp @@ -138,7 +138,7 @@ class WebSocketHook final while (startpos < maxpos) { size_t endpos = req.find(newline, startpos); - if (strncasecmp(req.c_str() + startpos, header, headerlen) != 0) + if (!insp::ascii_equals({req.c_str() + startpos, headerlen}, {header, headerlen})) { startpos = endpos + sizeof(newline) - 1; continue; // Incorrect header. |
