Use http_SetH() for setting the URL

Use of http_ForceField() with the url is now banned.
parent 913842ed
......@@ -99,10 +99,10 @@ tus_request_complete(VRT_CTX, const struct VPFX(tus_server) *srv,
WS_VSB_new(vsb, ctx->ws);
VSB_bcat(vsb, fdisk->url_path, (p - fdisk->url_path) + 1);
tus_vsbhex(vsb, b);
http_ForceField(ctx->http_req, HTTP_HDR_URL,
http_SetH(ctx->http_req, HTTP_HDR_URL,
WS_VSB_finish(vsb, ctx->ws, NULL));
} else {
http_ForceField(ctx->http_req, HTTP_HDR_URL, fdisk->url_path);
http_SetH(ctx->http_req, HTTP_HDR_URL, fdisk->url_path);
}
http_Unset(ctx->http_req, H_Content_Length);
http_PrintfHeader(ctx->http_req, "Content-Length: %zu",
......
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