aboutsummaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorJonathan Davies <jpds@protonmail.com>2023-06-06 16:26:06 +0100
committerJonathan Davies <jpds@protonmail.com>2023-06-06 16:26:06 +0100
commit8a945ee9963021594378095c4b949bf15e816439 (patch)
tree3acffc574f46f3660aaee67d3b50bdd0f9390c29 /src/api
parent180992d0f1b8d5731b0bf8844129f5686541bc86 (diff)
downloadgarage-8a945ee9963021594378095c4b949bf15e816439.tar.gz
garage-8a945ee9963021594378095c4b949bf15e816439.zip
payload.rs: Surround / in inverted commas.
Diffstat (limited to 'src/api')
-rw-r--r--src/api/signature/payload.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/signature/payload.rs b/src/api/signature/payload.rs
index 1e3fa207..b50fb3bb 100644
--- a/src/api/signature/payload.rs
+++ b/src/api/signature/payload.rs
@@ -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(),