user agent added to mimic the curl

Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
This commit is contained in:
Uncle Stinky 2026-02-19 19:23:50 +03:00
parent 6263c620ab
commit 2313bc97ec
Signed by: st1nky
GPG Key ID: 016064BD97603B40
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -1003,6 +1003,7 @@ impl<T: Config> Pallet<T> {
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()
{