Skip to content

Commit 5583c6c

Browse files
tpmccallumrylev
andauthored
Update examples/vault-variable-test/src/lib.rs
Signed-off-by: tpmccallum [email protected] Co-authored-by: Ryan Levick <[email protected]> Signed-off-by: Timothy McCallum <[email protected]>
1 parent 1ba8691 commit 5583c6c

File tree

1 file changed

+1
-1
lines changed
  • examples/vault-variable-test/src

1 file changed

+1
-1
lines changed

examples/vault-variable-test/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use spin_sdk::{
77

88
#[http_component]
99
fn handle_vault_variable_test(req: Request) -> Result<impl IntoResponse> {
10-
let attempt = std::str::from_utf8(req.body().as_ref()).unwrap();
10+
let attempt = std::str::from_utf8(req.body()).unwrap();
1111
let expected = variables::get("password").expect("could not get variable");
1212
let response = if expected == attempt {
1313
"accepted"

0 commit comments

Comments
 (0)