diff --git a/src/api.rs b/src/api.rs index 4fd7beb..a1f5d33 100644 --- a/src/api.rs +++ b/src/api.rs @@ -2,7 +2,7 @@ use serde::{Serialize, Deserialize, de::DeserializeOwned}; use std::{env, marker::Sized, time::Instant, sync::Arc}; use thiserror::Error; use serde_json::{json, value::from_value}; -use reqwest::{Client, Response, cookie::Jar, Url}; +use reqwest::{Client, Response, cookie::Jar, Url, header::ACCEPT}; #[derive(Deserialize)] struct DeezerResponse { @@ -99,6 +99,7 @@ impl APIClient { ("api_version", "1.0"), ("api_token", check_form) ]) + .header(ACCEPT, "*/*") .json(params) .send() .await?