projects
/
platform
/
upstream
/
libwebsockets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
serving: protect file sending from downgrading to waiting pipelined headers
[platform/upstream/libwebsockets.git]
/
lib
/
parsers.c
diff --git
a/lib/parsers.c
b/lib/parsers.c
index
9cd70e0
..
97731bc
100644
(file)
--- a/
lib/parsers.c
+++ b/
lib/parsers.c
@@
-86,6
+86,9
@@
lws_header_table_reset(struct lws *wsi, int autoservice)
_lws_header_table_reset(ah);
+ wsi->u.hdr.parser_state = WSI_TOKEN_NAME_PART;
+ wsi->u.hdr.lextable_pos = 0;
+
/* since we will restart the ah, our new headers are not completed */
// wsi->hdr_parsing_completed = 0;