capture path/uri when connecting, and pass it back through callbacks in the openInfo member

This commit is contained in:
Benjamin Sergeant
2019-01-03 17:44:10 -08:00
parent 6ac3bdb94a
commit bd1c8873d0
13 changed files with 64 additions and 42 deletions

View File

@ -380,7 +380,7 @@ namespace ix
}
}
return WebSocketInitResult(true, status, "", headers);
return WebSocketInitResult(true, status, "", headers, path);
}
WebSocketInitResult WebSocketHandshake::serverHandshake(int fd)
@ -491,6 +491,6 @@ namespace ix
return WebSocketInitResult(false, 0, std::string("Failed sending response to ") + remote);
}
return WebSocketInitResult(true, 200, "", headers);
return WebSocketInitResult(true, 200, "", headers, uri);
}
}