no need to pass the unused buffer
This commit is contained in:
parent
7af826ea13
commit
0d379f956c
|
@ -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") {
|
||||||
|
|
Loading…
Reference in a new issue