Skip to content

Commit

Permalink
(merge) fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik K <[email protected]>
  • Loading branch information
Dominik-K committed Nov 7, 2023
1 parent 30e81e2 commit 3af51e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ocpp/common/websocket/websocket_tls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ bool WebsocketTLS::connect() {
websocket_thread.reset(new websocketpp::lib::thread(&tls_client::run, &this->wss_client));

this->wss_client.set_tls_init_handler(
websocketpp::lib::bind(&WebsocketTLS::on_tls_init, this, this->connection_options.csms_uri.get_chargepoint_id(),
websocketpp::lib::bind(&WebsocketTLS::on_tls_init, this, this->connection_options.csms_uri.get_hostname(),
websocketpp::lib::placeholders::_1, this->connection_options.security_profile));

this->reconnect_callback = [this](const websocketpp::lib::error_code& ec) {
Expand Down
2 changes: 1 addition & 1 deletion lib/ocpp/common/websocket/websocket_uri.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ auto path_split_last_segment(std::string path) {
pos_last_slash -= 1;
}

auto path_without_last_segment = std::string(path.substr(0, pos_last_slash));
auto path_without_last_segment = std::string(path.substr(0, pos_last_slash + 1));
std::string last_segment = std::string(path.substr(pos_last_slash + 1));

auto last_segment = std::string(path.substr(pos_last_slash + 1));
Expand Down

0 comments on commit 3af51e3

Please sign in to comment.