Skip to content

Commit

Permalink
Fix: minimal build
Browse files Browse the repository at this point in the history
  • Loading branch information
jcorporation committed May 19, 2024
1 parent 1a677a3 commit 45ac805
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/web_server/web_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -921,10 +921,12 @@ static void ev_handler_redirect(struct mg_connection *nc, int ev, void *ev_data)
mg_http_serve_dir(nc, hm, &s_http_server_opts);
break;
}
if (mg_match(hm->uri, mg_str("/script/#"), NULL)) {
script_execute_http(nc, hm, config);
break;
}
#ifdef MYMPD_ENABLE_LUA
if (mg_match(hm->uri, mg_str("/script/*/*"), NULL)) {
script_execute_http(nc, hm, config);
break;
}
#endif
//redirect to https
struct mg_str *host_hdr = mg_http_get_header(hm, "Host");
if (host_hdr == NULL) {
Expand Down

0 comments on commit 45ac805

Please sign in to comment.