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

minimal client: add --path option

This commit is contained in:
Andy Green 2019-12-03 07:33:19 +00:00
parent 68de449093
commit efbab4c602

View file

@ -198,7 +198,11 @@ system_notify_cb(lws_state_manager_t *mgr, lws_state_notify_link_t *link,
if ((p = lws_cmdline_option(a->argc, a->argv, "--server")))
i.address = p;
i.path = "/";
if ((p = lws_cmdline_option(a->argc, a->argv, "--path")))
i.path = p;
else
i.path = "/";
i.host = i.address;
i.origin = i.address;
i.method = "GET";