support chunked encoding with POST uploads (Creation With Upload)

parent 2dd124cf
...@@ -400,6 +400,9 @@ tus_request(VRT_CTX, struct VPFX(tus_server) *tussrv, ...@@ -400,6 +400,9 @@ tus_request(VRT_CTX, struct VPFX(tus_server) *tussrv,
cl = 0; cl = 0;
if (http_GetHdr(ctx->http_req, H_Content_Length, &p)) if (http_GetHdr(ctx->http_req, H_Content_Length, &p))
cl = strtoumax(p, &q, 10); cl = strtoumax(p, &q, 10);
else if (http_GetHdr(ctx->http_req, H_Transfer_Encoding, &p) &&
strcasecmp(p, "chunked") == 0)
cl = 1;
if (cl && ! ct_ok) { if (cl && ! ct_ok) {
r->status = 415; r->status = 415;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment