Skip to content

Commit

Permalink
Fix maximize-interoperability flag. (#49)
Browse files Browse the repository at this point in the history
Also test the feature flag in the CI.
  • Loading branch information
cobward authored Jan 8, 2025
1 parent e944a3d commit 89aabfc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Build
run: cargo build
- name: Test
run: cargo test
run: cargo test --all-features
- name: Fmt
run: cargo fmt -- --check
- name: Clippy
Expand Down
2 changes: 1 addition & 1 deletion src/core/authorization_request/verification/x509_san.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ pub fn validate<V: Verifier>(
(GeneralName::DnsName(uri), X509SanVariant::Uri) => Some(uri.to_string()),
#[cfg(feature = "maximize_interoperability")]
(GeneralName::UniformResourceIdentifier(uri), X509SanVariant::Dns) => Some(
Url::parse(uri.as_str())
url::Url::parse(uri.as_str())
.map(|u| u.authority().to_string())
.unwrap_or(uri.to_string()),
),
Expand Down

0 comments on commit 89aabfc

Please sign in to comment.