Skip to content

Commit

Permalink
Set a user agent header.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmart7t2 committed Jan 31, 2024
1 parent 7485618 commit 2f6887b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/subcommand/wallet/inscribe.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use reqwest::header::USER_AGENT;
use reqwest::header;
use {
self::batch::{Batch, BatchEntry, Batchfile, Mode},
super::*,
Expand Down Expand Up @@ -522,7 +524,9 @@ impl Inscribe {

let mut entries = Vec::new();
let tmpdir = tempdir().unwrap();
let request_client = reqwest::blocking::Client::builder().build().unwrap();
let mut headers = header::HeaderMap::new();
headers.insert(USER_AGENT, header::HeaderValue::from_static("ord inscribe endpoint"));
let request_client = reqwest::blocking::Client::builder().default_headers(headers).build().unwrap();

for (i, inscription) in inscriptions.iter().enumerate() {
if !inscription.is_object() {
Expand Down

0 comments on commit 2f6887b

Please sign in to comment.