Skip to content

Commit

Permalink
Make sure middleware is Any[] before adding ReviseMiddleware
Browse files Browse the repository at this point in the history
  • Loading branch information
frankier committed Nov 5, 2024
1 parent ede9d60 commit 2ef3de1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ function serve(ctx::Context;
if ctx.mod === nothing
@warn "You are trying to use the `revise` option without @oxidise. Code in the `Main` module, which likely includes your routes, will not be tracked and revised."
end
middleware = convert(Vector{Any}, middleware)
insert!(middleware, 1, ReviseHandler(ctx))
end

Expand Down

0 comments on commit 2ef3de1

Please sign in to comment.