Skip to content

Commit

Permalink
Protect POST /txs bulk query-by-txid endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mononaut committed Aug 28, 2023
1 parent 17f60a9 commit d3509c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,7 @@ fn handle_request(
json_response(tx.remove(0), ttl)
}
}
(&Method::POST, Some(&"txs"), None, None, None, None) => {
(&Method::POST, Some(&INTERNAL_PREFIX), Some(&"txs"), None, None, None) => {
let txid_strings: Vec<String> =
serde_json::from_slice(&body).map_err(|err| HttpError::from(err.to_string()))?;

Expand Down

0 comments on commit d3509c4

Please sign in to comment.