summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/rust/unit-wasm-sys/rusty.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rust/unit-wasm-sys/rusty.rs b/src/rust/unit-wasm-sys/rusty.rs
index 81b3e5b..3ef7e82 100644
--- a/src/rust/unit-wasm-sys/rusty.rs
+++ b/src/rust/unit-wasm-sys/rusty.rs
@@ -115,7 +115,7 @@ pub fn uwr_get_http_content_str(ctx: *const luw_ctx_t) -> &'static str {
unsafe {
let slice = slice::from_raw_parts(
uwr_get_http_content(ctx),
- uwr_get_http_content_len(ctx),
+ uwr_get_http_total_content_sent(ctx),
);
str::from_utf8(slice).unwrap()
}