recycleactor commited on
Commit
bc351ab
·
verified ·
1 Parent(s): a2cd60e

Upload 2 files

Browse files
Files changed (2) hide show
  1. src/main.rs +1 -1
  2. src/soundcloud.rs +1 -1
src/main.rs CHANGED
@@ -1335,7 +1335,7 @@ async fn download(
1335
  if !resp.status().is_success() {
1336
  return (StatusCode::BAD_GATEWAY, "CDN error").into_response();
1337
  }
1338
- let content_type = resp.headers()
1339
  .get(reqwest::header::CONTENT_TYPE)
1340
  .and_then(|v| v.to_str().ok())
1341
  .unwrap_or("audio/mpeg")
 
1335
  if !resp.status().is_success() {
1336
  return (StatusCode::BAD_GATEWAY, "CDN error").into_response();
1337
  }
1338
+ let _content_type = resp.headers()
1339
  .get(reqwest::header::CONTENT_TYPE)
1340
  .and_then(|v| v.to_str().ok())
1341
  .unwrap_or("audio/mpeg")
src/soundcloud.rs CHANGED
@@ -1,5 +1,5 @@
1
  use axum::{
2
- extract::{Query, State},
3
  http::StatusCode,
4
  response::IntoResponse,
5
  Json,
 
1
  use axum::{
2
+ extract::Query,
3
  http::StatusCode,
4
  response::IntoResponse,
5
  Json,