Skip to content

Commit

Permalink
Merge pull request #301 from umccr/fix/encryption-scheme-case
Browse files Browse the repository at this point in the history
fix(http): allow encryption scheme to be uppercase
  • Loading branch information
brainstorm authored Jan 24, 2025
2 parents 28f7c84 + 6777dba commit 627d8eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htsget-http/src/query_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ impl QueryBuilder {
encryption_scheme: Option<impl Into<String>>,
) -> Result<Self> {
if let Some(scheme) = encryption_scheme {
let scheme = match scheme.into().as_str() {
let scheme = match scheme.into().to_lowercase().as_str() {
"c4gh" => Ok(EncryptionScheme::C4GH),
scheme => Err(HtsGetError::UnsupportedFormat(format!(
"invalid encryption scheme `{scheme}`"
Expand Down

0 comments on commit 627d8eb

Please sign in to comment.