diff --git a/lib/roles/http/server/server.c b/lib/roles/http/server/server.c index 1986ba0b2..46d6bc765 100644 --- a/lib/roles/http/server/server.c +++ b/lib/roles/http/server/server.c @@ -1994,6 +1994,7 @@ lws_http_action(struct lws *wsi) if (m > 0) #endif { +lwsl_notice("%s: hit->protocol %s\n", __func__, hit->protocol); /* * lws_return_http_status(wsi, HTTP_STATUS_NOT_FOUND, NULL); */ @@ -2001,7 +2002,7 @@ lws_http_action(struct lws *wsi) const struct lws_protocols *pp = lws_vhost_name_to_protocol( wsi->a.vhost, hit->protocol); - +lwsl_notice("%s: pp %p\n", __func__, pp); /* coverity */ if (!pp) return 1; diff --git a/minimal-examples-lowlevel/ws-server/minimal-ws-server/minimal-ws-server.c b/minimal-examples-lowlevel/ws-server/minimal-ws-server/minimal-ws-server.c index 0d9691544..ffcd3e411 100644 --- a/minimal-examples-lowlevel/ws-server/minimal-ws-server/minimal-ws-server.c +++ b/minimal-examples-lowlevel/ws-server/minimal-ws-server/minimal-ws-server.c @@ -39,7 +39,8 @@ static const struct lws_http_mount mount = { /* .mountpoint */ "/", /* mountpoint URL */ /* .origin */ "./mount-origin", /* serve from dir */ /* .def */ "index.html", /* default filename */ - /* .protocol */ NULL, + /* .protocol */ NULL, /* if you are using your own http protocol, to + * serve the mount, give the protocol's name here */ /* .cgienv */ NULL, /* .extra_mimetypes */ NULL, /* .interpret */ NULL,