Spaces:
Running
Running
Upload 2 files
Browse files- src/main.rs +1 -1
- 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
|
| 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::
|
| 3 |
http::StatusCode,
|
| 4 |
response::IntoResponse,
|
| 5 |
Json,
|
|
|
|
| 1 |
use axum::{
|
| 2 |
+
extract::Query,
|
| 3 |
http::StatusCode,
|
| 4 |
response::IntoResponse,
|
| 5 |
Json,
|