Missing return for DELETE

this would lead to DELETEs being always responded to with a 404
parent 6566b82f
......@@ -367,6 +367,7 @@ tus_request(VRT_CTX, struct VPFX(tus_server) *tussrv,
tus_file_del(&r->fcore);
AZ(r->fcore);
r->s.status = 204;
return (0);
}
if (m == GET) {
......
......@@ -151,6 +151,15 @@ client c2 {
expect resp.status == 301
expect resp.http.Location == "http://localhost/id-empty"
txreq -method "DELETE" -url "/id-empty" \
-hdr "Tus-Resumable: 1.0.0"
rxresp
expect resp.status == 204
txreq -method "DELETE" -url "/id-empty" \
-hdr "Tus-Resumable: 1.0.0"
rxresp
expect resp.status == 404
} -start
client c1 -wait
......
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