mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
relay: strip leading slash from session id
This commit is contained in:
parent
925a315ca5
commit
86773a83bb
1 changed files with 2 additions and 2 deletions
|
@ -81,10 +81,10 @@ RelaySession * RelaySession::get(lws *wsi)
|
|||
|
||||
/* Get path of incoming request */
|
||||
lws_hdr_copy(wsi, uri, sizeof(uri), WSI_TOKEN_GET_URI);
|
||||
if (strlen(uri) <= 0)
|
||||
if (strlen(uri) <= 1)
|
||||
throw InvalidUrlException();
|
||||
|
||||
Identifier sid = uri;
|
||||
Identifier sid = uri + 1;
|
||||
|
||||
auto it = sessions.find(sid);
|
||||
if (it == sessions.end()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue