Skip to content

Commit

Permalink
Trim the ending slash from consensus RPC
Browse files Browse the repository at this point in the history
  • Loading branch information
kvinwang committed Jan 8, 2025
1 parent a98921f commit b58c3ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethereum/src/rpc/http_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async fn get<R: DeserializeOwned>(req: &str) -> Result<R> {
impl<S: ConsensusSpec> ConsensusRpc<S> for HttpRpc {
fn new(rpc: &str) -> Self {
HttpRpc {
rpc: rpc.to_string(),
rpc: rpc.trim_end_matches('/').to_string(),
}
}

Expand Down

0 comments on commit b58c3ca

Please sign in to comment.