First pass on fixes
This commit is contained in:
parent
5826d89b97
commit
2f3be75fc7
269 changed files with 1593 additions and 2574 deletions
|
@ -201,13 +201,11 @@ pub fn poll_read_buf(
|
|||
}
|
||||
|
||||
fn redact_error(mut error: reqwest::Error) -> reqwest::Error {
|
||||
if let Some(url) = error.url_mut() {
|
||||
if let Some(query) = url.query() {
|
||||
if let Cow::Owned(redacted) = REDACT_REGEX.replace_all(query, "key=REDACTED") {
|
||||
if let Some(url) = error.url_mut()
|
||||
&& let Some(query) = url.query()
|
||||
&& let Cow::Owned(redacted) = REDACT_REGEX.replace_all(query, "key=REDACTED") {
|
||||
url.set_query(Some(redacted.as_str()));
|
||||
}
|
||||
}
|
||||
}
|
||||
error
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue