Skip to content
Snippets Groups Projects
Commit 4588e4e4 authored by Andy Green's avatar Andy Green
Browse files

clean uri arg dump

parent e70c63ba
No related branches found
No related tags found
No related merge requests found
...@@ -137,15 +137,10 @@ int callback_http(struct lws *wsi, enum lws_callback_reasons reason, void *user, ...@@ -137,15 +137,10 @@ int callback_http(struct lws *wsi, enum lws_callback_reasons reason, void *user,
dump_handshake_info(wsi); dump_handshake_info(wsi);
/* dump the individual URI Arg parameters */ /* dump the individual URI Arg parameters */
m = 1;
n = 0; n = 0;
while (m > 0) { while (lws_hdr_copy_fragment(wsi, buf, sizeof(buf),
m = lws_hdr_copy_fragment(wsi, buf, sizeof(buf), WSI_TOKEN_HTTP_URI_ARGS, n) > 0) {
WSI_TOKEN_HTTP_URI_ARGS, n); lwsl_info("URI Arg %d: %s\n", ++n, buf);
if (m < 0)
continue;
n++;
lwsl_info("URI Arg %d: %s\n", n, buf);
} }
if (len < 1) { if (len < 1) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment