Skip to content

Commit

Permalink
fix returning empty value for empty header
Browse files Browse the repository at this point in the history
get_http_request_headers_bytes return empty vec for empty header value
but get_http_request_header_bytes returns None for empty header value.
this commit intends to fix this inconsistency.
  • Loading branch information
Premkumar Bhaskal committed Feb 28, 2025
1 parent c8b2335 commit 079fa02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hostcalls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ pub fn get_map_value_bytes(map_type: MapType, key: &str) -> Result<Option<Bytes>
return_size,
)))
} else {
Ok(None)
Ok(Some(Vec::new()))
}
}
Status::NotFound => Ok(None),
Expand Down

0 comments on commit 079fa02

Please sign in to comment.