Skip to content

Commit 8aca2fb

Browse files
committed
veb: fix static handler
1 parent 021c953 commit 8aca2fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vlib/veb/veb.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ fn route_matches(url_words []string, route_words []string) ?[]string {
615615
fn serve_if_static[X](app StaticHandler, mut user_context X, url urllib.URL, host string) bool {
616616
// TODO: handle url parameters properly - for now, ignore them
617617
mut asked_path := url.path
618-
static_handler := app_static_handler(app)
618+
static_handler := app
619619

620620
// Content negotiation for markdown files (if enabled)
621621
if static_handler.enable_markdown_negotiation {

0 commit comments

Comments
 (0)