mirror of
https://github.com/4cuck/nitter-status.git
synced 2026-10-27 00:57:39 +00:00
fixup .well-known login
This commit is contained in:
1 parent
f336fe5be9
commit
6b6fe3803e
1 file changed
+2
-3
+2
-3
@@ -178,7 +178,7 @@ async fn login_inner(
|
||||
}
|
||||
VerificationMethod::HTTP => {
|
||||
let fetched_key = fetch_host_txt(&host.url, login_client, &config).await?;
|
||||
verify_key(&fetched_key, &input.key).map(|_| host)
|
||||
verify_key(fetched_key.trim(), &input.key).map(|_| host)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -211,8 +211,7 @@ async fn fetch_host_txt(
|
||||
.send()
|
||||
.await
|
||||
.map_err(|e| LoginError::HttpFailure(request_url.clone(), e))?;
|
||||
match true {
|
||||
// result.status().is_success()
|
||||
match result.status().is_success() {
|
||||
true => Ok(result.text().await.map_err(|e: reqwest::Error| {
|
||||
LoginError::InvalidResponse(request_url, e.to_string())
|
||||
})?),
|
||||
|
||||
Reference in new issue
Block a user