Skip to content

Commit

Permalink
Debug log request.headers map
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Cattermole <[email protected]>
  • Loading branch information
adam-cattermole committed Nov 12, 2024
1 parent cc5fa59 commit ae16bb3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/data/property.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,12 @@ pub fn host_get_map(path: &Path) -> Result<HashMap<String, String>, String> {
pub fn host_get_map(path: &Path) -> Result<HashMap<String, String>, String> {
match *path.tokens() {
["request", "headers"] => {
debug!(
"get_map: {:?}",
proxy_wasm::types::MapType::HttpRequestHeaders
);
let map =
proxy_wasm::hostcalls::get_map(proxy_wasm::types::MapType::HttpRequestHeaders)
.unwrap()
.expect("Failed to get_map request.headers")
.into_iter()
.collect();
debug!("get_map: {map:#?}");
Ok(map)
}
_ => Err(format!("Unknown map requested {:?}", path)),
Expand Down

0 comments on commit ae16bb3

Please sign in to comment.