diff options
| author | Stanisław Zagórowski <hasohasacz@gmail.com> | 2024-01-19 22:38:49 +0100 |
|---|---|---|
| committer | Stanisław Zagórowski <hasohasacz@gmail.com> | 2024-01-19 22:38:49 +0100 |
| commit | 90d05fd9911596db33a20a164f92a51ffd067053 (patch) | |
| tree | 0aaab8eb31d532f79090c466c3f3b3c9c3529d87 /src/server.rs | |
| parent | 2e77359c2f1cab769e34cde5c0dfb90a2d52b00b (diff) | |
fix: body as string instead of table of numbers, write numbers and booleans to html
Diffstat (limited to 'src/server.rs')
| -rw-r--r-- | src/server.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.rs b/src/server.rs index 307aa0c..7aa3cec 100644 --- a/src/server.rs +++ b/src/server.rs @@ -186,7 +186,7 @@ impl State { let route: rlua::Function = manifest.get("route")?; let method = method.as_str(); - let body: Vec<u8> = body.to_bytes().to_vec(); + let body: rlua::String = ctx.create_string(&body.to_bytes().to_vec())?; let res: rlua::Result<(rlua::Integer, rlua::Value)> = route.call((path.clone(), method, body)); |
