diff --git a/lib/secure-streams/protocols/ss-raw.c b/lib/secure-streams/protocols/ss-raw.c index 76b11ea10..0bb11aa5c 100644 --- a/lib/secure-streams/protocols/ss-raw.c +++ b/lib/secure-streams/protocols/ss-raw.c @@ -120,6 +120,16 @@ secstream_raw(struct lws *wsi, enum lws_callback_reasons reason, void *user, lwsl_info("%s: RAW_ADOPT\n", __func__); break; + /* chunks of chunked content, with header removed */ + case LWS_CALLBACK_RAW_RX_FILE: + in = p; + f = (int)read(wsi->desc.filefd, p, sizeof(buf) - LWS_PRE); + if (f < 0) + return 0; + len = (unsigned int)f; + + /* fallthru */ + /* chunks of chunked content, with header removed */ case LWS_CALLBACK_RAW_RX: if (!h || !h->info.rx)