From 7c4f3473afa3e5501a21bf6e9466da52726bac8e Mon Sep 17 00:00:00 2001 From: asonix Date: Sun, 3 Mar 2024 14:35:01 -0600 Subject: Lowercase query parameter keys when parsing --- src/api/signature/payload.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/api/signature/payload.rs b/src/api/signature/payload.rs index 0029716a..250e007e 100644 --- a/src/api/signature/payload.rs +++ b/src/api/signature/payload.rs @@ -197,7 +197,7 @@ pub fn parse_query_map(uri: &http::uri::Uri) -> Result { if let Some(query_str) = uri.query() { let query_pairs = url::form_urlencoded::parse(query_str.as_bytes()); for (key, val) in query_pairs { - if query.insert(key.to_string(), val.into_owned()).is_some() { + if query.insert(key.to_lowercase().to_string(), val.into_owned()).is_some() { return Err(Error::bad_request(format!( "duplicate query parameter: `{}`", key -- cgit v1.2.3