Add accept and content-type headers to API calls.

This commit is contained in:
FiveMovesAhead 2024-06-07 22:48:43 +10:00
parent f178522fe7
commit 83f519e529

View File

@ -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(),