mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
minimal: add note about binding mount
This commit is contained in:
parent
6b950e8666
commit
032adce8c3
2 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue