diff options
| author | 2021-08-17 22:21:07 +0100 | |
|---|---|---|
| committer | 2021-08-17 22:21:07 +0100 | |
| commit | 0b61c19a804d03027bbc0696ba95ea791f28f98d (patch) | |
| tree | 9aae51045929e4741a347be52f747a608190b3e6 | |
| parent | Improve WebSocket header parsing. (diff) | |
Minor clean up of the previous commit.
| -rw-r--r-- | src/modules/m_websocket.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_websocket.cpp b/src/modules/m_websocket.cpp index bd5058caa..264e295f7 100644 --- a/src/modules/m_websocket.cpp +++ b/src/modules/m_websocket.cpp @@ -76,7 +76,7 @@ class WebSocketHook : public IOHookMiddle bool Find(const std::string& req, const char* header, std::string::size_type headerlen, std::string::size_type maxpos) { // Skip the GET /wibble HTTP/1.1 line. - size_t startpos = req.find(newline) + sizeof(newline) - 1;; + size_t startpos = req.find(newline) + sizeof(newline) - 1; while (startpos < maxpos) { size_t endpos = req.find(newline, startpos); @@ -99,7 +99,6 @@ class WebSocketHook : public IOHookMiddle } // No header found. - ServerInstance->Logs->Log(MODNAME, LOG_DEBUG, "not found"); return false; } |
