Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
145 changes: 137 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,6 @@ aws-smithy-types = "1"
bytes = "1"
http = "1"
rustls = { version = "0.23", features = ["ring"] }
rstest = "0.25"
serial_test = "3"
tempfile = "3"
3 changes: 2 additions & 1 deletion src/adapters/server/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,12 @@ pub(super) fn parse_query_params(
for (name, value) in url::form_urlencoded::parse(query.as_bytes()) {
let name = name.into_owned();
let value = value.into_owned();
if params.insert(name.clone(), value).is_some() {
if params.contains_key(&name) {
return Err(bad_request_response(&format!(
"query parameter `{name}` must not be repeated"
)));
}
params.insert(name, value);
}

Ok(params)
Expand Down
7 changes: 6 additions & 1 deletion src/adapters/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,12 @@ pub struct WasmInspectResponse {
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct WasmTransformResponse {
/// Transformed output bytes. JavaScript receives this as a `Uint8Array`.
/// Transformed output bytes.
///
/// Skipped during JSON serialization because the bytes are passed separately
/// through the [`WasmTransformResponse`] getter to avoid duplicating potentially
/// megabytes of image data inside the JSON metadata string.
#[serde(skip_serializing)]
pub bytes: Vec<u8>,
/// Metadata describing the transformed artifact.
pub artifact: WasmArtifactInfo,
Expand Down
Loading
Loading