Skip to content

Commit

Permalink
add content type header
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacherr committed Oct 20, 2024
1 parent 34ccabe commit e36b374
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assyst-core/src/rest/web_media_download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ pub async fn download_web_media(client: &Client, url: &str, opts: WebDownloadOpt
let res = client
.post((*route).clone())
.header("accept", "application/json")
.header("content-type", "application/json")
.header("User-Agent", "Assyst Discord Bot (https://github.com/jacherr/assyst2)")
.json(&json!({
"url": encoded_url,
Expand Down

0 comments on commit e36b374

Please sign in to comment.