Skip to content

Commit cda69dd

Browse files
committed
fix(route): proper function call for HEAD
1 parent 90cc624 commit cda69dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/http/router/route.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ pub const Route = struct {
126126
}
127127

128128
pub fn head(self: Route, data: anytype, handler_fn: TypedHandlerFn(@TypeOf(data))) Route {
129-
return inner_route(.HEAD, self, handler_fn);
129+
return inner_route(.HEAD, self, data, handler_fn);
130130
}
131131

132132
pub fn post(self: Route, data: anytype, handler_fn: TypedHandlerFn(@TypeOf(data))) Route {

0 commit comments

Comments
 (0)