Skip to content

Commit

Permalink
[CHG] fix the wrong host error
Browse files Browse the repository at this point in the history
  • Loading branch information
betta-cyber committed Apr 5, 2020
1 parent 60b3053 commit 0a5a5aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/player/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub async fn fetch_data(url: &str, buffer: NamedTempFile, tx: Sender<String>) ->
headers.insert(CACHE_CONTROL, "no-cache".parse().unwrap());
headers.insert(PRAGMA, "no-cache".parse().unwrap());
headers.insert(UPGRADE_INSECURE_REQUESTS, "1".parse().unwrap());
headers.insert(HOST, "m7.music.126.net".parse().unwrap());
// headers.insert(HOST, "m701.music.126.net".parse().unwrap());
headers.insert(ACCEPT, "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3".parse().unwrap());
headers.insert(ACCEPT_ENCODING, "gzip,deflate,br".parse().unwrap());
headers.insert(
Expand Down

0 comments on commit 0a5a5aa

Please sign in to comment.