Skip to content
Snippets Groups Projects
Commit 860c44e9 authored by GyDi's avatar GyDi
Browse files

chore: someting

parent 694a7760
No related branches found
No related tags found
No related merge requests found
...@@ -32,11 +32,10 @@ pub async fn fetch_profile(url: &str) -> Option<ProfileResponse> { ...@@ -32,11 +32,10 @@ pub async fn fetch_profile(url: &str) -> Option<ProfileResponse> {
// parse the Subscription Userinfo // parse the Subscription Userinfo
let extra = { let extra = {
let sub_info = header let sub_info = match header.get("Subscription-Userinfo") {
.get("Subscription-Userinfo") Some(value) => value.to_str().unwrap_or(""),
.unwrap() None => "",
.to_str() };
.unwrap();
ProfileExtra { ProfileExtra {
upload: parse_string(sub_info, "upload=").unwrap_or(0), upload: parse_string(sub_info, "upload=").unwrap_or(0),
......
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