mirror of
https://github.com/SuperBFG7/ympd
synced 2025-03-30 07:17:05 +00:00
Cleanups
This commit is contained in:
parent
86c8e5d16f
commit
d2438d99e6
@ -100,7 +100,6 @@ static void ev_handler(struct mg_connection *nc, int ev, void *ev_data) {
|
|||||||
static void ev_handler_http(struct mg_connection *nc_http, int ev, void *ev_data) {
|
static void ev_handler_http(struct mg_connection *nc_http, int ev, void *ev_data) {
|
||||||
switch(ev) {
|
switch(ev) {
|
||||||
case MG_EV_HTTP_REQUEST: {
|
case MG_EV_HTTP_REQUEST: {
|
||||||
|
|
||||||
printf("Redirecting to %s\n", s_redirect);
|
printf("Redirecting to %s\n", s_redirect);
|
||||||
mg_http_send_redirect(nc_http, 301, mg_mk_str(s_redirect), mg_mk_str(NULL));
|
mg_http_send_redirect(nc_http, 301, mg_mk_str(s_redirect), mg_mk_str(NULL));
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user