We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78dca9c commit f6bca12Copy full SHA for f6bca12
sentry-core/src/utils.rs
@@ -20,6 +20,8 @@ pub fn is_sensitive_header(name: &str) -> bool {
20
21
/// Scrub PII (username and password) from the given URL.
22
pub fn scrub_pii_from_url(mut url: url::Url) -> url::Url {
23
+ // the set calls will fail and return an error if the URL is relative
24
+ // in those cases, just ignore the errors
25
if !url.username().is_empty() {
26
let _ = url.set_username(PII_REPLACEMENT);
27
}
0 commit comments