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

spa: parser should tolerate additional headers

This commit is contained in:
Marco Gratzke 2021-04-27 11:53:04 +01:00 committed by Andy Green
parent 5fdd9c99b1
commit 32c4d2cb29

View file

@ -439,11 +439,11 @@ done:
case MT_IGNORE3:
if (*in == '\x0d')
s->state = MT_IGNORE1;
if (*in == '-') {
else if (*in == '-') {
s->state = MT_COMPLETED;
s->wsi->http.rx_content_remain = 0;
}
in++;
else in++;
break;
case MT_COMPLETED:
break;