mirror of
https://github.com/tig-pool-nk/tig-monorepo.git
synced 2026-02-26 05:57:28 +08:00
Add accept and content-type headers to API calls.
This commit is contained in:
parent
f178522fe7
commit
83f519e529
@ -49,6 +49,8 @@ impl Api {
|
||||
vec![
|
||||
("x-api-key".to_string(), self.api_key.clone()),
|
||||
("user-agent".to_string(), "TIG API".to_string()),
|
||||
("accept".to_string(), "application/json".to_string()),
|
||||
("content-type".to_string(), "application/json".to_string()),
|
||||
]
|
||||
.into_iter()
|
||||
.collect(),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user