payload.rs: Surround / in inverted commas.

This commit is contained in:
Jonathan Davies 2023-06-06 16:26:06 +01:00 committed by networkException
parent 8bbbd3d70c
commit 1a03427102
Signed by: networkException
GPG key ID: E3877443AE684391

View file

@ -211,7 +211,7 @@ fn parse_query_authorization(
fn parse_credential(cred: &str) -> Result<(String, String), Error> { fn parse_credential(cred: &str) -> Result<(String, String), Error> {
let first_slash = cred let first_slash = cred
.find('/') .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); let (key_id, scope) = cred.split_at(first_slash);
Ok(( Ok((
key_id.to_string(), key_id.to_string(),