From 0d379f956cda849ca420de9222a3b1879e37e2fc Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Mon, 3 Jun 2024 14:11:11 +0200 Subject: [PATCH] no need to pass the unused buffer --- cmd/httpd/main.ha | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/httpd/main.ha b/cmd/httpd/main.ha index a084cda..ae72714 100644 --- a/cmd/httpd/main.ha +++ b/cmd/httpd/main.ha @@ -107,7 +107,7 @@ fn route_request(buf: *io::stream, serv_req: *http::server_request) (void | http case => return notfound; }; case "OPTIONS" => - handle_cors(buf, serv_req); + handle_cors(serv_req); return; case => return notfound; }; @@ -195,7 +195,7 @@ fn handle_badrequest(request: *http::server_request) void = { )!; }; -fn handle_cors(buf: *io::stream, serv_req: *http::server_request) void = { +fn handle_cors(serv_req: *http::server_request) void = { let request = serv_req.request; if (request.target.path == "/v1/exec") {