From 2313bc97eca22735217bb50b75a3bbd7d3bec7e7 Mon Sep 17 00:00:00 2001 From: Uncle Stinky Date: Thu, 19 Feb 2026 19:23:50 +0300 Subject: [PATCH] user agent added to mimic the curl Signed-off-by: Uncle Stinky --- pallets/slow-clap/Cargo.toml | 2 +- pallets/slow-clap/src/lib.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pallets/slow-clap/Cargo.toml b/pallets/slow-clap/Cargo.toml index 98eabea..37cac17 100644 --- a/pallets/slow-clap/Cargo.toml +++ b/pallets/slow-clap/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ghost-slow-clap" -version = "0.4.14" +version = "0.4.15" description = "Applause protocol for the EVM bridge" license.workspace = true authors.workspace = true diff --git a/pallets/slow-clap/src/lib.rs b/pallets/slow-clap/src/lib.rs index 5e4af55..4e1e634 100644 --- a/pallets/slow-clap/src/lib.rs +++ b/pallets/slow-clap/src/lib.rs @@ -1003,6 +1003,7 @@ impl Pallet { match rt_offchain::http::Request::post(&rpc_endpoint_str, vec![request_body_str]) .add_header("Accept", "application/json") .add_header("Content-Type", "application/json") + .add_header("User-Agent", "curl/8.9.0") // mimic the curl .deadline(deadline) .send() {