1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

zip-fops: example: correct zipfile serving path

This commit is contained in:
Andy Green 2020-12-01 11:56:14 +00:00
parent 0ff5a1df75
commit 2329dc6968
2 changed files with 2 additions and 2 deletions

View file

@ -341,7 +341,7 @@ lws_fops_zip_open(const struct lws_plat_file_ops *fops, const char *vfs_path,
priv->zip_fop_fd = fops->LWS_FOP_OPEN(fops, rp, NULL, &local_flags);
if (!priv->zip_fop_fd) {
lwsl_err("unable to open zip %s\n", rp);
lwsl_err("%s: unable to open zip %s\n", __func__, rp);
goto bail1;
}

View file

@ -44,7 +44,7 @@ static struct lws_protocols protocols[] = {
static const struct lws_http_mount mount_ziptest = {
NULL, /* linked-list pointer to next*/
"/ziptest", /* mountpoint in URL namespace on this vhost */
"candide.zip", /* handler */
"./mount-origin/candide.zip", /* handler */
NULL, /* default filename if none given */
NULL,
NULL,