user agent added to mimic the curl
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
This commit is contained in:
parent
6263c620ab
commit
2313bc97ec
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "ghost-slow-clap"
|
name = "ghost-slow-clap"
|
||||||
version = "0.4.14"
|
version = "0.4.15"
|
||||||
description = "Applause protocol for the EVM bridge"
|
description = "Applause protocol for the EVM bridge"
|
||||||
license.workspace = true
|
license.workspace = true
|
||||||
authors.workspace = true
|
authors.workspace = true
|
||||||
|
|||||||
@ -1003,6 +1003,7 @@ impl<T: Config> Pallet<T> {
|
|||||||
match rt_offchain::http::Request::post(&rpc_endpoint_str, vec![request_body_str])
|
match rt_offchain::http::Request::post(&rpc_endpoint_str, vec![request_body_str])
|
||||||
.add_header("Accept", "application/json")
|
.add_header("Accept", "application/json")
|
||||||
.add_header("Content-Type", "application/json")
|
.add_header("Content-Type", "application/json")
|
||||||
|
.add_header("User-Agent", "curl/8.9.0") // mimic the curl
|
||||||
.deadline(deadline)
|
.deadline(deadline)
|
||||||
.send()
|
.send()
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user