Fix salvo fullstack builds

This commit is contained in:
Evan Almloff committed 2023-07-10 18:48:55 -05:00
1 parent 73a45fb113
commit 0e83d48c04
4 files changed
+102 -114

No files matched your search

@@ -50,8 +50,6 @@ fn app(cx: Scope<AppProps>) -> Element {
async fn post_server_data(data: String) -> Result<(), ServerFnError> {
// The server context contains information about the current request and allows you to modify the response.
let cx = server_context();
cx.response_headers_mut()
.insert("Set-Cookie", "foo=bar".parse().unwrap());
println!("Server received: {}", data);
println!("Request parts are {:?}", cx.request_parts());