aboutsummaryrefslogtreecommitdiff
path: root/src/http.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/http.zig')
-rw-r--r--src/http.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http.zig b/src/http.zig
index 59fb6debf..780cce9fe 100644
--- a/src/http.zig
+++ b/src/http.zig
@@ -655,7 +655,7 @@ pub const RequestContext = struct {
pub var javascript_disabled = false;
var thread: std.Thread = undefined;
pub fn spawnThread(handler: HandlerThread) !void {
- _ = try std.Thread.spawn(spawn, handler);
+ _ = try std.Thread.spawn(.{}, spawn, .{handler});
}
pub fn spawn(handler: HandlerThread) void {
@@ -1138,7 +1138,7 @@ pub const RequestContext = struct {
pub fn handleWebsocket(ctx: *RequestContext) anyerror!void {
ctx.controlled = true;
var handler = try WebsocketHandler.addWebsocket(ctx);
- _ = try std.Thread.spawn(WebsocketHandler.handle, handler);
+ _ = try std.Thread.spawn(.{}, WebsocketHandler.handle, .{handler});
}
pub fn auto500(ctx: *RequestContext) void {