Skip to content
Snippets Groups Projects
Unverified Commit b74696ad authored by GyDi's avatar GyDi
Browse files

feat: add default user agent

parent c8ccba01
No related branches found
No related tags found
No related merge requests found
......@@ -196,9 +196,8 @@ impl PrfItem {
if !with_proxy {
builder = builder.no_proxy();
}
if let Some(user_agent) = user_agent {
builder = builder.user_agent(user_agent);
}
builder = builder.user_agent(user_agent.unwrap_or("clash-verge/v0.1.0".into()));
let resp = builder.build()?.get(url).send().await?;
let header = resp.headers();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment