aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2023-06-09 08:59:47 +0000
committerAlex <alex@adnab.me>2023-06-09 08:59:47 +0000
commit6aec73b6413b85260a273aea04ea64eb0a30b1c1 (patch)
tree3acffc574f46f3660aaee67d3b50bdd0f9390c29 /src
parent44548a9114766b1b58887a1888472ad95847b4f6 (diff)
parent8a945ee9963021594378095c4b949bf15e816439 (diff)
downloadgarage-6aec73b6413b85260a273aea04ea64eb0a30b1c1.tar.gz
garage-6aec73b6413b85260a273aea04ea64eb0a30b1c1.zip
Merge pull request 'payload.rs: Fixed two typoes' (#581) from jpds/garage:payload-typoes into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/581
Diffstat (limited to 'src')
-rw-r--r--src/api/signature/payload.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/signature/payload.rs b/src/api/signature/payload.rs
index c945ab11..b50fb3bb 100644
--- a/src/api/signature/payload.rs
+++ b/src/api/signature/payload.rs
@@ -185,7 +185,7 @@ fn parse_query_authorization(
if duration > 7 * 24 * 3600 {
return Err(Error::bad_request(
- "X-Amz-Exprires may not exceed a week".to_string(),
+ "X-Amz-Expires may not exceed a week".to_string(),
));
}
@@ -211,7 +211,7 @@ fn parse_query_authorization(
fn parse_credential(cred: &str) -> Result<(String, String), Error> {
let first_slash = cred
.find('/')
- .ok_or_bad_request("Credentials does not contain / in authorization field")?;
+ .ok_or_bad_request("Credentials does not contain '/' in authorization field")?;
let (key_id, scope) = cred.split_at(first_slash);
Ok((
key_id.to_string(),