mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
reverse proxy: correct scan length so NUL goes in right place
This commit is contained in:
parent
c4c60fb95e
commit
3eb329bb32
1 changed files with 1 additions and 1 deletions
|
@ -1273,7 +1273,7 @@ lws_http_action(struct lws *wsi)
|
|||
if (lws_hdr_copy(wsi, p,
|
||||
(int)(&rpath[sizeof(rpath) - 1] - p),
|
||||
WSI_TOKEN_HTTP_URI_ARGS) > 0)
|
||||
while (--na) {
|
||||
while (na--) {
|
||||
if (*p == '\0')
|
||||
*p = '&';
|
||||
p++;
|
||||
|
|
Loading…
Add table
Reference in a new issue