mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-13 15:44:35 +01:00
show commits in news section
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
use reqwest::header::USER_AGENT;
|
||||
|
||||
pub(crate) async fn query(site: &str) -> String {
|
||||
let response = reqwest::get(site).await.unwrap();
|
||||
let client = reqwest::Client::new();
|
||||
|
||||
let response = client.get(site).header(USER_AGENT, "cultivation").send().await.unwrap();
|
||||
return response.text().await.unwrap();
|
||||
}
|
||||
Reference in New Issue
Block a user