Skip to content

Commit 16b4269

Browse files
authored
Merge pull request #137 from flashbots/peg/fix-strip-suffix
Fix normalization bug when handling quote provider urls
2 parents 08ab087 + c182768 commit 16b4269

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • attested-tls/src/attestation

attested-tls/src/attestation/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ fn map_attestation_provider_url(url: String) -> Result<String, AttestationError>
397397
format!("http://{}", url.trim_start_matches("http://"))
398398
};
399399

400-
url.strip_suffix('/').unwrap_or(&url).to_string();
400+
let url = url.strip_suffix('/').unwrap_or(&url).to_string();
401401

402402
// If compiled in test mode, skip this check
403403
if !cfg!(test) {

0 commit comments

Comments
 (0)