Add API test + fix presigned requests #756

Merged
lx merged 4 commits from test-presigned into main 2024-03-04 12:56:03 +00:00
Showing only changes of commit 7c4f3473af - Show all commits

View file

@ -197,7 +197,7 @@ pub fn parse_query_map(uri: &http::uri::Uri) -> Result<QueryMap, Error> {
if let Some(query_str) = uri.query() { if let Some(query_str) = uri.query() {
let query_pairs = url::form_urlencoded::parse(query_str.as_bytes()); let query_pairs = url::form_urlencoded::parse(query_str.as_bytes());
for (key, val) in query_pairs { 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!( return Err(Error::bad_request(format!(
"duplicate query parameter: `{}`", "duplicate query parameter: `{}`",
key key