From db0336f2d50362e5e25e91e13e58241505b79f7b Mon Sep 17 00:00:00 2001 From: hosted-fornet Date: Tue, 17 Dec 2024 12:40:41 -0800 Subject: [PATCH] http-server: use last_blob in request handler --- src/http/server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/http/server.rs b/src/http/server.rs index 94df019..872675b 100644 --- a/src/http/server.rs +++ b/src/http/server.rs @@ -1,6 +1,6 @@ use crate::vfs::{FileType, VfsAction, VfsRequest, VfsResponse}; use crate::{ - get_blob, Address, LazyLoadBlob as KiBlob, Message, Request as KiRequest, + get_blob, last_blob, Address, LazyLoadBlob as KiBlob, Message, Request as KiRequest, Response as KiResponse, }; pub use http::StatusCode; @@ -1000,7 +1000,7 @@ impl HttpServer { HttpServerRequest::WebSocketPush { channel_id, message_type, - } => ws_handler(channel_id, message_type, get_blob().unwrap_or_default()), + } => ws_handler(channel_id, message_type, last_blob().unwrap_or_default()), HttpServerRequest::WebSocketOpen { path, channel_id } => { self.handle_websocket_open(&path, channel_id); }