bring back non-tus GET handling

parent 7efab8c2
......@@ -245,8 +245,9 @@ tus_request(VRT_CTX, struct VPFX(tus_server) *tussrv,
return (0);
}
if (! http_GetHdr(ctx->http_req, hdr_resum, &p) ||
strcmp(p, "1.0.0") != 0) {
if (m != GET &&
(! http_GetHdr(ctx->http_req, hdr_resum, &p) ||
strcmp(p, "1.0.0") != 0)) {
r->status = 412;
return (0);
}
......
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