1
Fork 0

no need to pass the unused buffer

This commit is contained in:
Jan-Erik Rediger 2024-06-03 14:11:11 +02:00
parent 7af826ea13
commit 0d379f956c

View file

@ -107,7 +107,7 @@ fn route_request(buf: *io::stream, serv_req: *http::server_request) (void | http
case => return notfound; case => return notfound;
}; };
case "OPTIONS" => case "OPTIONS" =>
handle_cors(buf, serv_req); handle_cors(serv_req);
return; return;
case => return notfound; 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; let request = serv_req.request;
if (request.target.path == "/v1/exec") { if (request.target.path == "/v1/exec") {