clean uri arg dump
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
e70c63ba8f
commit
4588e4e415
1 changed files with 3 additions and 8 deletions
|
@ -137,15 +137,10 @@ int callback_http(struct lws *wsi, enum lws_callback_reasons reason, void *user,
|
|||
dump_handshake_info(wsi);
|
||||
|
||||
/* dump the individual URI Arg parameters */
|
||||
m = 1;
|
||||
n = 0;
|
||||
while (m > 0) {
|
||||
m = lws_hdr_copy_fragment(wsi, buf, sizeof(buf),
|
||||
WSI_TOKEN_HTTP_URI_ARGS, n);
|
||||
if (m < 0)
|
||||
continue;
|
||||
n++;
|
||||
lwsl_info("URI Arg %d: %s\n", n, buf);
|
||||
while (lws_hdr_copy_fragment(wsi, buf, sizeof(buf),
|
||||
WSI_TOKEN_HTTP_URI_ARGS, n) > 0) {
|
||||
lwsl_info("URI Arg %d: %s\n", ++n, buf);
|
||||
}
|
||||
|
||||
if (len < 1) {
|
||||
|
|
Loading…
Add table
Reference in a new issue